From Fedora Project Wiki

Line 32: Line 32:
 
<abbr Title="dnf [options] info [&lt;package-spec&gt;...]&#13;&#13;Is used to list description and summary information about available packages.&#13;&#13;This command by default does not force a sync of expired metadata.">info</abbr>
 
<abbr Title="dnf [options] info [&lt;package-spec&gt;...]&#13;&#13;Is used to list description and summary information about available packages.&#13;&#13;This command by default does not force a sync of expired metadata.">info</abbr>
  
<abbr Title="dnf [options] install &lt;spec&gt;...&#13;&#13;    Make sure that the given packages and their dependencies can be installed on the system. Each &lt;spec&gt; can be either a &lt;package-spec&gt;, which specifies a package directly, or a path to the local rpm package, or an URL to a remote rpm package, or a @&lt;group-spec&gt;, which specifies an (environment) group which contains it. If a given package cannot be (and is not already) installed, the exit code will be non-zero.&#13;&#13;Please make sure that you understand which package will be selected in case of multiple matches.">install</abbr>
+
<abbr Title="dnf [options] install &lt;spec&gt;...&#13;&#13;    Dnf makes sure that the given packages and their dependencies are installed on the system. Each &lt;spec&gt; can be either a &lt;package-spec&gt;, which specifies a package directly, or a path to the local rpm package, or an URL to a remote rpm package, or a @&lt;group-spec&gt;, which specifies an (environment) group which contains it. If a given package cannot be (and is not already) installed, the exit code will be non-zero.&#13;&#13;Please make sure that you understand which package will be selected in case of multiple matches.">install</abbr>
  
 
<abbr Title="Dumps lists of packages depending on the packages’ relation to the system. A package is installed if it is present in the RPMDB, and it is available if it is not installed but it is present in a repository that DNF knows about. The list command can also limit the displayed packages according to other criteria, e.g. to only those that update an installed package.&#13;&#13;All the forms take a [&lt;package-specs&gt;...] parameter to further limit the result to only those packages matching it.&#13;&#13;dnf [options] list [all] [&lt;package-name-specs&gt;...]&#13;    Lists all packages known to us, present in the RPMDB, in a repo or in both.&#13;&#13;dnf [options] list installed [&lt;package-name-specs&gt;...]&#13;    Lists installed packages.&#13;&#13;dnf [options] list available [&lt;package-name-specs&gt;...]&#13;    Lists available packages.&#13;&#13;dnf [options] list extras [&lt;package-name-specs&gt;...]&#13;    Lists extras, that is packages installed on the system that are not available in any known repository.&#13;&#13;dnf [options] list obsoletes [&lt;package-name-specs&gt;...]&#13;    List the packages installed on the system that are obsoleted by packages in any known repository.&#13;&#13;dnf [options] list recent [&lt;package-name-specs&gt;...]&#13;    List packages recently added into the repositories.&#13;&#13;dnf [options] list upgrades [&lt;package-name-specs&gt;...]&#13;    List upgrades available for the installed packages.&#13;&#13;dnf [options] list autoremove&#13;    List packages which will be removed by dnf autoremove command.&#13;&#13;This command by default does not force a sync of expired metadata.">list</abbr>
 
<abbr Title="Dumps lists of packages depending on the packages’ relation to the system. A package is installed if it is present in the RPMDB, and it is available if it is not installed but it is present in a repository that DNF knows about. The list command can also limit the displayed packages according to other criteria, e.g. to only those that update an installed package.&#13;&#13;All the forms take a [&lt;package-specs&gt;...] parameter to further limit the result to only those packages matching it.&#13;&#13;dnf [options] list [all] [&lt;package-name-specs&gt;...]&#13;    Lists all packages known to us, present in the RPMDB, in a repo or in both.&#13;&#13;dnf [options] list installed [&lt;package-name-specs&gt;...]&#13;    Lists installed packages.&#13;&#13;dnf [options] list available [&lt;package-name-specs&gt;...]&#13;    Lists available packages.&#13;&#13;dnf [options] list extras [&lt;package-name-specs&gt;...]&#13;    Lists extras, that is packages installed on the system that are not available in any known repository.&#13;&#13;dnf [options] list obsoletes [&lt;package-name-specs&gt;...]&#13;    List the packages installed on the system that are obsoleted by packages in any known repository.&#13;&#13;dnf [options] list recent [&lt;package-name-specs&gt;...]&#13;    List packages recently added into the repositories.&#13;&#13;dnf [options] list upgrades [&lt;package-name-specs&gt;...]&#13;    List upgrades available for the installed packages.&#13;&#13;dnf [options] list autoremove&#13;    List packages which will be removed by dnf autoremove command.&#13;&#13;This command by default does not force a sync of expired metadata.">list</abbr>

Revision as of 08:02, 2 October 2015

DNF is a software package manager that installs, updates, and removes packages on RPM-based Linux distributions. It automatically computes dependencies and figures out what things should occur to install packages. DNF makes it easier to maintain groups of machines without having to manually update each one using rpm.

DNF is the next upcoming major version of Yum. It roughly maintains CLI compatibility with Yum and defines 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

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 YUM:

# sudo dnf search audacity 
# sudo dnf install audacity.x86_64 
# sudo dnf remove audacity 

Documentation

https://github.com/rpm-software-management/dnf/wiki lists two documentation links

1. Documentation Index

2. Command Reference