Package manager for handling software packages on RPM-based Linux distributions
Updated at: March 16, 2025
Package Installation
DNF (Dandified YUM) is the package manager for RHEL, Fedora, and related Linux distributions. It handles installation, updates, and removal of software packages while managing dependencies. Most DNF commands require root privileges, typically using sudo.
Package Removal
DNF provides powerful options for removing packages from your system, including handling dependencies, orphaned packages, and cleaning up cached data. These commands require superuser privileges.
Package Updates
DNF provides various options to update your system packages. You can update all packages at once, target specific packages, apply security updates only, or schedule automatic updates for system maintenance.
Repository Management
DNF repositories are sources for packages. Managing repositories allows you to control which software sources are available for installation and updates. This section covers how to add, enable, disable, and configure repositories.
Package Information
DNF provides powerful commands to query package information, search for packages, inspect dependencies, and verify system integrity. These tools help administrators identify what's installed, find packages to install, and troubleshoot package-related issues.
System Maintenance
System maintenance with DNF involves keeping your system clean, efficient, and reliable. These commands help you manage package cache, verify system integrity, fix dependency issues, and perform system upgrades safely.
Transaction Management
DNF maintains a history of all transactions (installations, removals, and updates) allowing you to view past actions, roll back changes, and analyze problems that might have occurred during package operations.
Advanced Operations
Advanced DNF operations enable system administrators to customize package management behavior, work with modular content, handle complex package relationships, and automate routine tasks for enterprise environments.
Related Cheatsheets