From Fedora Project Wiki

Line 64: Line 64:


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


<pre># sudo dnf search audacity </pre>
<pre># sudo dnf search audacity </pre>
<pre># sudo dnf install audacity.x86_64 </pre>
<pre># sudo dnf install audacity </pre>
<pre># sudo dnf remove audacity </pre>
<pre># sudo dnf remove audacity </pre>


Line 75: Line 75:
=== System Upgrades ===
=== System Upgrades ===
Fedora Products can be upgraded with DNF system upgrade plugin or directly with DNF. See [[Upgrade]] section.
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 for install and remove the Language Support. Detail description with list of available languages can be found on [https://fedoraproject.org/wiki/I18N/Language_Support_Using_Dnf Language Support Using Dnf] page.


== Documentation ==
== Documentation ==

Revision as of 11:29, 6 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

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 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 for install and remove the Language Support. Detail description with list of available languages can be found on Language Support Using Dnf page.

Documentation

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

1. Documentation Index

2. Command Reference