Section: DNF and Yum for RHEL family

Remove package

bash
bash
sudo dnf remove nginx
Explanation

Useful for package cleanup and rollback.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing DNF and Yum for RHEL family
Check available updates
Query repositories for updates.
OpenIn sheetbashsame section
Upgrade packages
Upgrade installed packages to latest versions.
OpenIn sheetbashsame section
Install package
Install packages with dependencies.
OpenIn sheetbashsame section
Search packages
Search by name or summary.
OpenIn sheetbashsame section
Show package information
Display version and package metadata.
OpenIn sheetbashsame section
Install package group
Install a named group of packages.
OpenIn sheetbashsame section