sudo apt-get update
install all update easily in Ubuntu. Is sudo dnf update
similar to this in Fedora 25?
As apt-get update
(or apt update
), a dnf check-update
updates the local repository cache.
The (general) dnf update
equivalent in Debian/Ubuntu is a combination of apt update
, apt upgrade
and apt autoremove
.
There is a nice comparison between the package management tools apt, yum, dnf and pkg.
dnf
or yum
is automatically updating the package lists when used ... for e.g. # dnf install package
About dnf update
: Will update packages to the latest available version. Like apt-get upgrade
will do.
From fedoraproject.org/wiki/
:
Ubuntu command --- Fedora command
apt-get update --- dnf check-update You don't need to do this as dnf updates its cache automatically before performing transactions
apt-get upgrade --- dnf upgrade
apt-get install --- dnf install
apt-get remove --- dnf remove
apt-get purge --- N/A
apt-cache search --- dnf search
yum
? – Shadur May 29 '17 at 10:21dnf
has replacedyum
on the latest fedora versions – GAD3R May 29 '17 at 12:52dnf
andyum
are synonymous. Use what you like. – mattdm Sep 29 '18 at 21:20