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