Fedora’s DNF Package Management System (original) (raw)

Last Updated : 18 May, 2026

DNF (Dandified YUM) is the default package manager used in Fedora to install, update, remove and manage software packages. RPM installs local packages and does not resolve dependencies automatically and dependency handling is done by DNF.

Example: Searching for Packages

To search for a package, you need to Use the dnf search command with the package that you want and it will show you all available packages matching that query:

**Command:

dnf search vlc

**Output:

An image showing searching of an app using dnf-gfg

DNF vs RPM

RPM is the low-level package management system used in Fedora, while DNF works on top of RPM.

Key Features

1. High-Level Package Management

2. Repository Management

3. Transaction History

4. Security and Updates

Syntax

dnf [options] COMMAND

Common DNF Commands

1. Installing Packages

To install software packages from repositories, the install command is used. This command requires sudo privileges.

sudo dnf install package_name

**Command:

sudo dnf install vlc.x86_64

an image showing installation of an app using dnf_gfg

using DNF to install one package

**Command: To install multiple packages

sudo dnf install vlc.x86_64 firefox.x86_64

**Output:

An image showing the installation of multiple apps using dnf_GFG

Installing multiple packages using DNF

2. Upgrading Packages and System

To update all installed packages along with the system, the upgrade command is used.

**Command:

sudo dnf upgrade

**Output:

An image showing upgrading using DNFGFG

Upgrading using DNF

3. Upgrading a Specific Package

To update a single package:

**Command:

sudo dnf upgrade firefox.x86_64

**Output:

An image showing upgrading individual package using DNF-gfg

Upgrading individual package using DNF

4. Listing Available Updates

To check available updates without installing them:

**Command:

dnf check-update

**Output:

An image which shows the checking of update using DNF-GFG

Checking for updates using DNF

5. Removing a Package

To uninstall a package from the system, the remove command is used.

sudo dnf remove firefox.x86_64

**Output:

An image showing removal of an app using dnf-gfg

Removing packages using DNF

6. Removing Multiple Packages

To remove more than one package:

**Syntax:

sudo dnf remove package1 package2 package3

**Output:

An image showing the removal of multiple apps using dnf-GFG

Removing multiple packages using DNF

7. Removing Unused Dependencies

To clean up unused dependencies left after package removal:

**Command:

sudo dnf autoremove

**Output:

An image showing the removal of leftover dependencies using DNF-GFG

Auto-removing leftover dependencies using DNF

8. Reinstalling a Package

If a package is corrupted or not functioning properly, it can be reinstalled.

**Command:

sudo dnf reinstall firefox.x86_64

**Output:

An image showing dnf reinstall command-GFG

Reinstalling using DNF

9. Listing All Available Packages

To list all packages available in enabled repositories:

**Command:

dnf list

10. Listing Installed Packages

To display only installed packages:

**Command:

dnf list --installed

**Output:

an image showing the dnf-list-installed command_gfg

Listing installed apps

11. Searching Within Installed Packages

To find a specific installed package using grep:

**Command:

dnf list --installed | grep firefox

**Output:

An image showing searching of a particular package in the installed packages-gfg

Searching Within Installed Packages

12. Getting Help with DNF

To display all basic commands and options

**Command:

dnf --help

13. Viewing the Manual Pages

For detailed documentation of DNF:

**Command:

man dnf