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-updateChecks for available updates without performing an upgrade.
Upgrading and Cleaning
Upgrade installed packages
sudo dnf upgradeUpgrades all installed packages to their latest versions.
Remove unused dependencies
sudo dnf autoremoveRemoves packages that were installed as dependencies and are no longer needed.
Clear the package cache
sudo dnf clean allRemoves all cached package files and metadata.