Commands · Command

CommandLinux

dnf

dnf [command] package

The modern package manager for Fedora and current RHEL/CentOS releases — yum's successor, with the same basic command structure but better dependency resolution.

// FLAGS

install / removeinstall or uninstall a package
updateupgrade all packages
list installedlist currently installed packages

// EXAMPLE

dnf update — upgrades every installed package to its latest available version.

// GOTCHA

dnf's command syntax is close enough to yum's that scripts often "just work" when ported over, which can hide the fact that dependency resolution behaves differently under the hood — worth re-testing rather than assuming full behavioral parity.

// RELATED COMMANDS