LinuxCommandLibrary

dnf5

Package management utility for RHEL, Fedora, and CentOS (it replaces dnf, which in turn replaced yum).

TLDR

Upgrade installed packages to the newest available versions

$ sudo dnf5 upgrade
copy


Search packages via keywords
$ dnf5 search [keyword1 keyword2 ...]
copy


Display details about a package
$ dnf5 info [package]
copy


Install new packages (Note: use -y to confirm all prompts automatically)
$ sudo dnf5 install [package1 package2 ...]
copy


Remove packages
$ sudo dnf5 remove [package1 package2 ...]
copy


List installed packages
$ dnf5 list --installed
copy


Find which packages provide a given command
$ dnf5 provides [command]
copy


Remove or expire cached data
$ sudo dnf5 clean all
copy

Copied to clipboard