DNF is a software package manager that installs, updates, and removes packages on RPM-based Linux distributions. It automatically computes dependencies and determines the actions required to install packages. DNF also makes it easier to maintain groups of machines, eliminating the need to manually update each one using rpm.
DNF (or Dandified Yum) is the next generation version of Yum. It roughly maintains CLI compatibility with Yum and defines a strict API for extensions and plugins. Plugins can modify or extend features of DNF or provide additional CLI commands on top of those mentioned below. If you know the name of such a command (including commands mentioned below), you may find/install the package which provides it using the appropriate virtual provide in the form of dnf-command() where is the name of the command; e.g. dnf-command(repoquery) for a repoquery command (the same applies to specifying dependencies of packages that require a particular command).
Homepage
Download
Recent Releases
4.22.030 Nov 2024 15:25
major bugfix:
Doc: Naming of source and derepos.
Spec: Move /var/cache/dnf from dnf to python3-dnf.
Spec: Remove preview yum_compat_level.
Spec: Simplify files dnf section for both yum_compat_levels.
Spec: ownership of /etc/yum tree.
Allow --installroot on read-only bootc system.
Spec: If DNF5 obsoletes DNF, do not build dnf and yum packages.
Spec: If DNF5 obsoletes DNF, do not build dnf-automatic.
Allow --downloadonly on read-only bootc system.
Base: Add kernel-core to reboot_needed list.
AUTHORS: Add myself.
Update need_reboot for dnf-automatic.
Doc: Example send_error_messages in /etc/dnf/automatic.conf.
Automatic: Check availability of config file.
Updated conf_ref to reflect change in fastestmirror behavior.
Display of a code snippet.
New features:
- Print rpm package unpack errors to the user (Rh).
:
Package location if baseurl is present in the metadata.
in 4.22.0:
:rh:`2312906`.
4.21.109 Oct 2024 02:45
minor bugfix:
Doc: minor formatting and consistency - Allow local downloads to same `downloaddir`.
"console" width on non real terminals (pipe).
Update ostree/bootc host system check.
Update bootc hosts message to point to bootc --help.
Tests: Use PGP keys without SHA-1.
4.21.019 Jun 2024 05:25
major feature:
Add detection for ostree-based systems and warn users about losing changes.
: No traceback when Python interpreter is running with -P.
Allow ` py3_shebang_` macro to add `-P` argument to shebang lines.
man: Improve upgrade-minimal command docs (RHEL-6417).
Limit queries to nevra forms when provided by command.
doc Remove provide of spec definition for repoquery command.
Update the man page entry for the countme option.
Drop collect file for ABRT.
4.20.025 Apr 2024 09:45
major bugfix:
Repoquery: loading filelists when -f is used (Rh).
Remove: --duplicates and --oldinstallonly exit with 0 when nothing to do (RHEL-6424).
Spec: Do not add user site-packages directory to sys.path (RHEL-26646).
Man: Prepare pages for dnf5 switch.
Spec: Prepare for switch of dnf5 in Rawhide.
in 4.20.0:
:rh:`2276012`.
4.19.129 Mar 2024 20:45
minor feature:
Add required `.readthedocs.yaml`, `conf.py` and set `sphinx_rtd_theme`.
Drop dnf obsoletion temporarily.
doc: Update FAQ entry on filelists.
build: Adapt to changes in Fedora packaging of bash-completion.
Support RPMTRANS_FLAG_DEPLOOPS.
Add all candidates for reinstall to solver.
handling installonly packages reasons.
Remove confusing sentence from documentation.
Remove "leaf" word from documentation.
Update documentation of history userinstalled command.
Onboard packit tests.
doc: Makecache with timer tries only one mirror.
ELN: Don't obsolete DNF with DNF5 yet.
bash-completion: Complete dnf command only if we own it.
bash-completion: Prepare ownerships for dnf5 switch.
4.19.009 Feb 2024 16:45
major feature:
Major changes:
Filelists metadata not loaded by default.
Deltarpm disabled by default.
New features:
Conf: Introduce new optional_metadata_types option to load filelists on demand.
Cli: Add a hint for user on transaction file dependency failure.
Cli: Setup filelists metadata for commands that need them.
Util: Add function for detecting file in specs.
:
Failing API unit test on rawhide (Rh).
Automatic: Use add_security_filters, not _update_security_filters.
in 4.19.0:
:rh:`2252128`.
:rh:`2254789`.
:rh:`2261066`.
4.18.201 Jan 2024 13:19
minor feature:
2.0.024 Dec 2016 19:11
major feature:
DNF-2.0 has been released! The next major version release of DNF brings many user experience improvements such as better dependency problem reporting messages, weak dependencies shown in transaction summary, more intuitive help usage invoking and others. Repoquery plugin has been moved into DNF itself. Whole DNF stack release fixes over 60 bugs. DNF-2.0 release is focused on improving yum compatibility i.e. treat yum configuration options the same (`include`, `includepkgs` and `exclude`). Unfortunately this release is not fully compatible with DNF-1. See the list of DNF-1 and DNF-2 incompatible changes. Authors of dnf plugins will need to check compatibility of their plugins with the new DNF argument parser.