10

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

alhelal
  • 1,271
  • 4
  • 17
  • 26

3 Answers3

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.

ben
  • 301
  • 1
  • 5
4

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.

Knud Larsen
  • 2,049
  • 1
  • 11
  • 9
3

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

Kepler
  • 43
  • 6