whatis dnf
DNF
Also known as: yum, .rpm, rpm
The package manager for Fedora, RHEL, CentOS Stream, AlmaLinux, and Rocky Linux, which installs and updates .rpm packages.
What Is DNF in Linux?
DNF replaced yum and handles repositories, dependency resolution, and transaction history. dnf history undo can roll back an install. The low-level rpm tool queries and installs individual .rpm files.
Fedora ships DNF5, a faster rewrite. COPR repositories provide community packages, similar to Ubuntu PPAs.
Example
sudo dnf upgrade --refresh
dnf history list Learn more about DNF
- DNF Guide (Fedora/RHEL) DNF is the package manager for Fedora, RHEL, AlmaLinux, and Rocky Linux. This guide covers daily commands, module streams, COPR repositories, version locking, and the rpm layer underneath.
- Building .deb and .rpm Packages How to package your own software for Debian and Red Hat systems, why a real package beats a tarball and an install script, and the shortcut when you do not need a perfect one.