sudo apt-get update install all update easily in Ubuntu. Is sudo dnf update similar to this in Fedora 25?

  • 1
    Doesn't fedora use yum ? – Shadur May 29 '17 at 10:21
  • 3
    @Shadur no. Fedora is using DNF for years – Jakuje May 29 '17 at 11:08
  • @Shadur dnf has replaced yum on the latest fedora versions – GAD3R May 29 '17 at 12:52
  • In current Fedora (F29+), dnf and yum are synonymous. Use what you like. – mattdm Sep 29 '18 at 21:20

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.