dnf
TLDR
Upgrade installed packages to newest versions
$ sudo dnf upgrade
Search packages via keywords$ dnf search [keyword]
Display details about a package$ dnf info [package]
Install new packages$ sudo dnf install [package]
Remove packages$ sudo dnf remove [package]
List installed packages$ dnf list --installed
Find which packages provide a command$ dnf provides [command]
Clean cached data$ sudo dnf clean all
SYNOPSIS
dnf [options] command [arguments]
DESCRIPTION
dnf (Dandified YUM) is the package manager for Fedora 41+, RHEL 10, and related distributions. 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
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.


