Terme informatique

dnf

A package manager used in particular on recent Fedora and RHEL.

⌚ About 2 min read
View my favorites

Simple definition

dnf is a package manager used on Fedora, RHEL, and related distributions to install, update, and remove software.

Technical definition

DNF works with RPM packages and the repositories configured on the system. It downloads repository metadata, resolves dependencies, calculates a transaction, and uses the RPM database to apply changes. Recent versions of some distributions use DNF5 while retaining a similar administrative workflow.

How it works / role

When a command such as dnf upgrade is run, DNF queries enabled repositories, compares available versions, resolves dependencies, and verifies the required signatures before executing the transaction. Its history can then be used to review package operations.

What is it used for?

Install packages, keep the system up to date, search for software, manage repositories, or troubleshoot RPM dependencies.

Practical example

An administrator runs sudo dnf upgrade to calculate and then apply updates available from the configured repositories.

Common issues

  • A repository is unreachable or its metadata is stale
  • A GPG key is missing or a package signature cannot be verified
  • Dependencies conflict or a package is held by a constraint
  • The RPM database or a package transaction requires recovery after interruption

Key takeaway: Before a major update, review enabled repositories and the proposed transaction rather than treating DNF as a simple download command.

♡ 0