dnf and yum in Rocky 8

Introduction

DNF, or Dandified YUM, is the next generation of the Yum application, a package manager for RPM-based Linux distributions.

DNF was developed from 2011, was introduced in Fedora 18, and has been the main package management system since Fedora 22.

The previous YUM had several drawbacks, and DNF was meant to fix them.

Among them: low performance, high memory consumption and a low speed of iterative dependency resolution. DNF uses libsolv, an external dependency solver.

DNF manages the dependencies of RPM packages and uses a number of existing libraries to work with them.

Initially the project was implemented in the Python programming language, but work is under way to port it to C and C++ and to move most functions from Python to the new libdnf library.

libdnf is already used in PackageKit, the package manager interface system for arbitrary Linux distributions.

Usage

DNF became the default package manager in Fedora 22 of May 2015.

The libdnf library is used in the PackageKit project. DNF is an alternative package manager in Mageia Linux since version 6 and may become the main one in the future.

Some DNF features were ported to YUM 4 of 2017, including faster dependency resolution

Dependencies

libdnf Provides a high-level API for DNF and the underlying libraries C language, LGPLv2+ licence libsolv A free dependency solver using the SAT algorithm Used to resolve dependencies and read package lists from repositories C language, new BSD licence librepo The library provides C and Python interfaces (similar to libcurl) for downloading the metadata of a Linux package repository and the packages themselves C language, LGPLv2+ licence libcomps Libcomps is an alternative to the yum.comps library. It is implemented in C and has interfaces for python2 and python3. C language, GPLv2+ licence

Article author: Andrei Olegovich

Banner image