Privacy Policy
© 2025 linux101.dev

DNF (Fedora/RHEL)

Dandified Yum (`dnf`) is the modern package manager for Red Hat-based distributions.

Installing Packages

Install a new package

sudo dnf install <package_name>

Installs a package and its dependencies.

Searching and Updating

Search for a package

sudo dnf search <keyword>

Searches for packages that match the specified keyword.

Check for updates

sudo dnf check-update

Checks for available updates without performing an upgrade.

Upgrading and Cleaning

Upgrade installed packages

sudo dnf upgrade

Upgrades all installed packages to their latest versions.

Remove unused dependencies

sudo dnf autoremove

Removes packages that were installed as dependencies and are no longer needed.

Clear the package cache

sudo dnf clean all

Removes all cached package files and metadata.