dnf5 Command Examples

Package management utility for RHEL, Fedora, and CentOS (it replaces dnf, which in turn replaced yum). DNF5 is a C++ rewrite of the DNF package manager featuring improved performance and a smaller size. For equivalent commands in other package managers, see https://wiki.archlinux.org/title/Pacman/Rosetta. More information: https://dnf5.readthedocs.io.

sudo dnf5 upgrade

dnf5 search {{keyword1 keyword2 ...}}

dnf5 info {{package}}

sudo dnf5 install {{package1 package2 ...}}

sudo dnf5 remove {{package1 package2 ...}}

dnf5 list --installed

dnf5 provides {{command}}

sudo dnf5 clean all