Commands · Command
CommandLinux
dnf
dnf [command] packageThe 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 packageupdateupgrade all packageslist 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