From Fedora Project Wiki

< DNF

Line 93: Line 93:
详情请查看[[Upgrade|升级]]页面。
详情请查看[[Upgrade|升级]]页面。


=== Dnf 的语言支持 ===
=== Dnf 与系统的语言支持 ===
DNF can be used to install or remove Language Support. A detailed description with a list of available languages can be found on [https://fedoraproject.org/wiki/I18N/Language_Support_Using_Dnf Language Support Using Dnf] page.
DNF 可以用来安装和移除系统的语言包。如果你想了解支持的语言,你可以访问[https://fedoraproject.org/wiki/I18N/Language_Support_Using_Dnf 语言支持] 页面.


== 相关文档 ==
== 相关文档 ==

Revision as of 02:20, 26 August 2016

DNF是一个用于安装,更新和删除RPM的软件包管理器。它会自动确定依赖关系,并确定要安装的软件包。 DNF也使维护计算机组变得更容易,无需手动更新每一个RPM。 它在Fedora18时推出,在Fedora22时成为默认的包管理器。

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

特性

  • 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

支持的命令

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

安装

DNF 和 Fedora 18 一起发布,在 Fedora 22 之前的版本可以用 yum 命令安装:

# yum install dnf

在 Fedora 22 后面的版本,Yum 已经被 DNF 取代,DNF 已被内置在系统中,无需自行安装。

用法

对于大部分的基本命令,只需简单地把yum换成dnf就行了,例如:

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

自动更新

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.

系统升级

Fedora 可以通过使用 DNF 系统升级插件(推荐方式)或是直接使用 DNF (不推荐)实现跨版本升级。 详情请查看升级页面。

Dnf 与系统的语言支持

DNF 可以用来安装和移除系统的语言包。如果你想了解支持的语言,你可以访问语言支持 页面.

相关文档

1. Documentation Index

2. Command Reference

3. DNF blog

4. DNF wiki