dnf
Fedora/RHEL package manager
TLDR
Upgrade installed packages to newest versions
SYNOPSIS
dnf [options] command [arguments]
DESCRIPTION
dnf (Dandified YUM) is the package manager for Fedora, RHEL, and related distributions. It has been the default since Fedora 22, with DNF5 becoming the default in Fedora 41+. It is the successor to YUM and provides improved dependency resolution, performance, and a more consistent interface.
PARAMETERS
install, in package
Install specified packagesremove, rm package
Remove specified packagesupgrade, up
Upgrade all installed packagessearch, se keyword
Search for packages matching keywordinfo, if package
Display detailed information about a packagelist, ls
List packages (--installed, --available, --updates)provides command
Find packages providing a file or commandclean option
Clean cached data (all, dbcache, expire-cache, metadata, packages)repolist
Display configured repositorieshistory
View transaction historyautoremove
Remove unneeded packages-y, --assumeyes
Automatically answer yes to prompts--refresh
Set metadata as expired before running command
CONFIGURATION
/etc/dnf/dnf.conf
Main DNF configuration file with settings for package management behavior.**/etc/yum.repos.d/*.repo**
Repository configuration files defining package sources.
CAVEATS
DNF5 (used in Fedora 41+) has some differences from earlier DNF versions. Check documentation for specific version differences.
HISTORY
DNF was introduced in Fedora 18 as an experimental package manager and became the default in Fedora 22. DNF5 is a complete rewrite released with Fedora 41.
