linux 包管理工具dnf,CentOS8启用DNF包管理工具
DNF包管理工具介绍
CentOS8启用了DNF作为系统软件包管理工具,Yum也不是被放弃,因为DNF应该说是Yum的一个更新的版本。
DNF stands for Dandified yum. DNF is a software package manager for RPM-based Linux distributions such as Fedora, RHEL and CentOS. It is the next upcoming major version of Yum. DNF is first introduced in Fedora and has replaced to become the default package manager of the Fedora distributions. DNF is same as Yum that installs, updates and removes packages on RPM based Linux systems. DNF is introduced for improving the bottlenecks of Yum such as performance, Memory usages, Dependency resolution, speed, and some other factors. The latest stable release of DNF is 1.0 and it is written in Python.
DNF是Dandified yum的缩写,DNF三个字母却没有一个来自yum。DNF也是基于RPM的包管理工具,其首先在Fedora系统中出现,已经成为Fedora系统的默认的包管理工具。现在又来到了CentOS,应该说使用CentOS是幸运的,因为其相对保守的特性。尝鲜的事情,就给Fedora系统吧。DNF的出现,是为了解决Yum系统的性能瓶颈,优化内存使用,依赖关系解析,执行速度等。DNF是用Python写的。
用dnf --help,查看你能够使用的命令参数,跟yum差不多。
DNF的优势
1) DNF comes with a simplified code: DNF has about 29000 lines of code compared to over 59000 in yum.
DNF代码比Yum要简单,只有不到3万行代码,而Yum接近6完行。
2) Support for multiple repositories.
支持多repo。
3) Faster and lesser memory intensive operations compared to yum.
更快,比Yum消耗更少内容。
4) Simple interface.
简单的界面。
5) DNF runs in both Python 2 and Python 3.
6) Simple configuration.
配置简单。
7) DNF has faster dependency resolving speed than yum.
依赖包解析速度更快。
8) RPM consistent behavior.
与RPM一致的行为。
9) C bindings for lower level libraries.
10) Package group support, including multiple-repository groups.
支持对package进行group管理
The default location of DNF configuration file is /etc/dnf/dnf.conf.
DNF的主要命令
$ dnf --help
usage: dnf [options] COMMAND
List of Main Commands:
alias List or create command aliases
autoremove remove all unneeded packages that were originally installed as dependencies
check check for problems in the packagedb
check-update check for available package upgrades
clean remove cached data
deplist List package's dependencies and what packages provide them
distro-sync synchronize installed packages to the latest available versions
downgrade Downgrade a package
group display, or use, the groups information
help display a helpful usage message
history display, or use, the transaction history
info display details about a package or group of packages
install install a package or packages on your system
list list a package or groups of packages
makecache generate the metadata cache
mark mark or unmark installed packages as installed by user.
module Interact with Modules.
provides find what package provides the given value
reinstall reinstall a package
remove remove a package or packages from your system
repolist display the configured software repositories
repoquery search for packages matching keyword
repository-packages run commands on top of all packages in given repository
search search package details for the given string
shell run an interactive DNF shell
swap run an interactive dnf mod for remove and install one spec
updateinfo display advisories about packages
upgrade upgrade a package or packages on your system
upgrade-minimal upgrade, but only 'newest' package match which fixes a problem that affects your system
DNF最后的这个upgrade-minimal命令,貌似Yum没有,这个命令看着很不错。总之,能用DNS,就不要再用Yum了。
linux 包管理工具dnf,CentOS8启用DNF包管理工具相关推荐
- Linux命令之 DNF -- 新一代的 RPM 软件包管理器
文章目录 一.命令介绍 二.安装 DNF 三.DNF 命令 (一)主要命令 1. 安装.升级和删除软件包 2. 查询和检查软件包 3. 执行其它功能 (二)插件命令 四.选项参数 五.命令示例 (一) ...
- Fedora 30可能默认启用DNF的best模式
根据Fedora 30的后期更改提议,默认情况下可能会启用DNF包管理器的"best"模式. DNF的--best选项始终尝试升级到可用的最高版本,即使无法满足依赖性.虽然DN ...
- 程序linux培训,马哥-51CTO-Linux培训-0910-程序包管理
(注:此博文源于夜归人的博客) 程序包管理,rpm.yum的使用 程序包管理的相关概念: <<=============================================== ...
- dnf 新一代的RPM软件包管理器
补充说明 DNF 是新一代的rpm软件包管理器.他首先出现在 Fedora 18 这个发行版中.而最近,它取代了yum,正式成为 Fedora 22 的包管理器. DNF包管理器克服了YUM包管理器的 ...
- linux的磁盘配额管理微课文档,Linux系统管理与服务配置(CentOS8微课版高职高专计算机任务驱动模式教材)...
导语 内容提要 本书以目前最新的CentOS 8为蓝本,从实用的角度介绍了被广泛应用的Linux操作系统的管理及利用Linux操作系统架设常见网络服务器的方法.本书内容包括Linux基础.Linux的 ...
- Linux下USB抓包工具UsbMon的使用和包数据格式解析
Linux下USB抓包工具UsbMon的使用和包数据格式解析 一.UsbMon的使用步骤 1.挂载debugfs 2.加载usbmon模块 3.确认usbmon是否可用 4.确认usb设备挂在哪条总线 ...
- centos8 通过dnf命令安装软件报Error: Failed to download metadata for repo ‘appstream‘ 解决办法
今天在用centos8的dnf安装git里报错 dnf install git -yError: Failed to download metadata for repo 'appstream': C ...
- linux下的安装命令行工具下载,本地安装DEB包的3种命令行工具(适合Debian体系)
1. 前言 在本教程中,我们将学习如何使用三种不同的命令行工具(dpkg.apt和gdebi)在Debian及其衍生产品(如Ubuntu和Linux Mint)中安装本地软件包(. deb). 这对那 ...
- 详解linux下auto工具制作Makefile源码包(制作篇)
2019独角兽企业重金招聘Python工程师标准>>> 详解linux下auto工具制作Makefile源码包(制作篇) 水木杨 一. 概述 为了更好的制作configure ...
最新文章
- Docker入门六部曲——基本引导
- 42佳优秀的 Photoshop 按钮制作教程
- 有没有必要开项目周会
- 华为云DevCloud重金悬赏,开发者大赛等你来战!
- @vue/cli 3 运行支持报错 socket
- hibernate实现多变联合查询
- Cloudflare通过UnstoppableDomains添加对“.crypto”域名的支持
- Windows服务器配置DFS实现文件同步
- 【转载】合理规划您的硬盘分区
- KISSY - A Powerful JavaScript Framework
- PMP备考|通关宝典
- 毕业设计任务书参考地址
- Kafka 麒麟先生_近百位超人气嘉宾出席元旦萤火虫 重磅新企划蓄势待发!
- Python3.7.4入门-0/1To Begin/数据类型与结构
- Grafana画图表教程
- 关于win弹出cmd命令行问题
- PCB布局布线中地的设计(地与地使用跨接)。
- vue 数据大屏使用数字字体
- Multisim14 ADC16的使用
- 玩转苹果电脑:常用操作及快捷键
热门文章
- 原生小程序授权code失效问题
- 中国工程科学:无人驾驶安全风险的识别与度量研究
- Model 的使用说明
- 网易有道加码成人教育赛道 官网为双拼域名youdao.com
- roast和roasting区别_西餐干加热之有些小复杂的Roast
- 神码ai人工智能写作机器人_机器学习和人工智能中的多样性推荐系统
- 海美迪盒子android升级,海美迪4K播放器直升安卓7.0 画质再上新境界
- linux 多任务浅析(二)
- 颜色搭配——莫兰迪色系
- C#:Krypton控件使用方法详解(第十二讲) ——kryptonCheckButton