Linux Commands Helper
💬 Your AI-powered Linux assistant
dnf Command - Modern Package Manager for RPM-based Systems
The dnf command is a modern package manager for RPM-based Linux distributions such as Fedora and CentOS. It is used to install, update, remove, and manage software packages, replacing yum in newer systems.
Syntax
dnf [options] [command] [package...]
Examples
sudo dnf install nginx
Install the nginx package.
sudo dnf update
Update all installed packages.
sudo dnf remove httpd
Remove the httpd package.
Notes
- dnf is the default package manager on Fedora, CentOS 8+, and RHEL 8+.
- Requires root privileges for most operations.
- Configuration files are in
/etc/dnf/
and/etc/yum.repos.d/
.