sudo apt-get update install all update easily in Ubuntu. Is sudo dnf update similar to this in Fedora 25?
- 1,271
- 4
- 17
- 26
-
1Doesn't fedora use `yum` ? – Shadur May 29 '17 at 10:21
-
3@Shadur no. [Fedora is using DNF for years](https://fedoraproject.org/wiki/DNF) – 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
3 Answers
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.
- 301
- 1
- 5
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.
- 2,049
- 1
- 11
- 9
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
- 43
- 6