dnf Command Examples

Package management utility for RHEL, Fedora, and CentOS (replaces yum). For equivalent commands in other package managers, see https://wiki.archlinux.org/title/Pacman/Rosetta. More information: https://dnf.readthedocs.io.

sudo dnf upgrade

dnf search {{keyword1 keyword2 ...}}

dnf info {{package}}

sudo dnf install {{package1 package2 ...}}

sudo dnf remove {{package1 package2 ...}}

dnf list --installed

dnf provides {{command}}

dnf history