1.百度中提供的安装办法

yum install epel-release -y
yum install dnf

2. No package dnf available解决办法

运行一下几个命令:

wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/dnf-conf-0.6.4-2.sdl7.noarch.rpm
wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64//dnf-0.6.4-2.sdl7.noarch.rpm
wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/python-dnf-0.6.4-2.sdl7.noarch.rpm
yum install python-dnf-0.6.4-2.sdl7.noarch.rpm dnf-0.6.4-2.sdl7.noarch.rpm dnf-conf-0.6.4-2.sdl7.noarch.rpm

安装之后执行以下命令:

dnf --version

输出:

0.6.4
Repository epel is listed more than once in the configuration
Installed: dnf-0:0.6.4-2.sdl7.noarch at 2018-03-09 11:31
Built : at 2016-10-09 17:18 Installed: rpm-0:4.11.3-25.el7.x86_64 at 2018-01-09 10:21
Built : CentOS BuildSystem <http://bugs.centos.org> at 2017-08-03 03:48

安装成功。

最新文章

  1. c# 反射事件
  2. 剖析javascript全局变量和局部变量
  3. asp之缓存 cachestate
  4. paip. 解决php 以及 python 连接access无效的参数量。参数不足,期待是 1”的错误
  5. oracle递归查询树的SQL语句
  6. unity, 用unity profiler进行真机profile,需要退出360
  7. MySQL 设置远程访问
  8. ACPI引起linux系统无故重启
  9. BZOJ 1820: [JSOI2010]Express Service 快递服务( dp )
  10. JQuery模拟实现天猫购物车动画效果
  11. 阿里云VPC绑定EIP实现SNAT
  12. JackSon将java对象转换为JSON字符串
  13. 如何 通过 userAgent 区别微信小程序
  14. oracle 数据库链路
  15. mycat测试
  16. 利用 bugly 分析应用崩溃
  17. iKcamp|基于Koa2搭建Node.js实战(含视频)☞ 错误处理
  18. J2ME项目移植到Android平台六大注意事项
  19. MySQL 主从同步失败,数据表修复
  20. 网络编程基础之粘包现象与UDP协议

热门文章

  1. 使用tcp+select实现客户端与客户端的通信
  2. Java基础点滴
  3. filezilla server客户端FTP连接不上解决
  4. XAMPP环境访问非Web DocumentRoot下绝对路径
  5. appium+Python 启动app(二)
  6. Java GC分析记录
  7. vue.js 安装过程(转载)
  8. canvas-缩放
  9. 未找到与命令“dotnet-ef”匹配的可执行文件
  10. PAT All Roads Lead to Rome 单源最短路