From Fedora Project Wiki

m (Voxadam moved page Dnf to DNF)
(Application Program Interface->Application Programming Interface; Yum/YUM->yum (proper case-sensitive name); fixing minor grammatical prob in "Introduced in Fedora 18..." sentence)
Line 1: Line 1:
{{autolang|base=yes}}
{{autolang|base=yes}}


DNF is a software package manager that installs, updates, and removes [[package]]s 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]]. Introduced in Fedora 18, it is the default package manager since Fedora 22.
'''DNF''' is a software package manager that installs, updates, and removes [[package]]s 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]]. Introduced in Fedora 18, it has been the default package manager since Fedora 22.


DNF or Dandified Yum is the next generation version of [[Yum]]. It roughly maintains <abbr Title="Command-Line Interface">CLI</abbr> compatibility with [[Yum]] and defines a strict <abbr Title="Application Program Interface">API</abbr> for extensions and plugins. Plugins can modify or extend features of DNF or provide additional <abbr Title="Command-Line Interface">CLI</abbr> commands on top of those mentioned below. If you know the name of such a command (including commands mentioned bellow), you may find/install the package which provides it using the appropriate virtual provide in the form of dnf-command(<alias>) where <alias> 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).
DNF or Dandified yum is the next generation version of [[yum]]. It roughly maintains <abbr Title="Command-Line Interface">CLI</abbr> compatibility with [[yum]] and defines a strict <abbr Title="Application Programming Interface">API</abbr> for extensions and plugins. Plugins can modify or extend features of DNF or provide additional <abbr Title="Command-Line Interface">CLI</abbr> commands on top of those mentioned below. If you know the name of such a command (including commands mentioned bellow), you may find/install the package which provides it using the appropriate virtual provide in the form of dnf-command(<alias>) where <alias> 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).


{{Infobox package
{{Infobox package
Line 75: Line 75:


== Installation ==
== Installation ==
DNF comes with Fedora since version 18, but DNF can installed by using the Yum Command:
DNF comes with Fedora since version 18, but DNF can installed by using the yum Command:
<pre># yum install dnf</pre>
<pre># yum install dnf</pre>
As of Fedora 22, [[Yum]] has been replaced with DNF and doesn't need to be install.
As of Fedora 22, [[yum]] has been replaced with DNF and doesn't need to be install.


== Usage ==
== Usage ==
In the basic methods, DNF can be used almost exactly as YUM to search, install or remove packages:  
In the basic methods, DNF can be used almost exactly as ym to search, install or remove packages:  


<pre># sudo dnf search audacity </pre>
<pre># sudo dnf search audacity </pre>

Revision as of 02:23, 6 January 2017

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. Introduced in Fedora 18, it has been the default package manager since Fedora 22.

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 bellow), you may find/install the package which provides it using the appropriate virtual provide in the form of dnf-command(<alias>) where <alias> 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).

DNF
Echo-package-48px.png

RPM package dnf
Added in Fedora 18, and later versions
Website http://dnf.baseurl.org/

BugsBodhiKoji

Features

  • Support for multiple repositories
  • Simple configuration
  • Dependency calculation based on modern depsolving technology
  • Faster and less memory-intensive operation
  • RPM-consistent behavior
  • Package group support, including multiple-repository groups
  • Simple interface
  • Documented, solid Python API
  • DNF runs in both Python 2 and Python 3
  • C bindings for lower level libraries:
    • hawkey for package querying and depsolving. PackageKit is already making use of hawkey
    • librepo for repo operations. PackageKit is already making use of librepo
    • libcomps for comps operations

Available commands

autoremove

check-update

clean

distro-sync

downgrade

group

help

history

info

install

list

makecache

mark

provides

reinstall

remove

repolist

repository-packages

search

updateinfo

upgrade

upgrade-to

Installation

DNF comes with Fedora since version 18, but DNF can installed by using the yum Command:

# yum install dnf

As of Fedora 22, yum has been replaced with DNF and doesn't need to be install.

Usage

In the basic methods, DNF can be used almost exactly as ym to search, install or remove packages:

# sudo dnf search audacity 
# sudo dnf install audacity 
# sudo dnf remove audacity 

Automatic Updates

The DNF-Automatic RPM package as a DNF component provides a service for automatic download and installation of updates. It can automatically monitor and report via email availability of updates, or send a log about downloaded packages and installed updates. See AutoUpdates section or DNF-Automatic page.

System Upgrades

Fedora Products can be upgraded with DNF system upgrade plugin or directly with DNF. See Upgrade section.

Language Support Using Dnf

DNF can be used to install or remove Language Support. A detailed description with a list of available languages can be found on Language Support Using Dnf page.

Documentation

1. Documentation Index

2. Command Reference

3. DNF blog

4. DNF wiki

5. Changes/DNF-2.0