码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS7安装dnf报错:No package dnf available

时间:2018-03-10 01:26:21      阅读:346      评论:0      收藏:0      [点我收藏+]

标签:mat   ring   百度   logs   port   available   http   package   centos7安装   

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

安装成功。

CentOS7安装dnf报错:No package dnf available

标签:mat   ring   百度   logs   port   available   http   package   centos7安装   

原文地址:https://www.cnblogs.com/vitasyuan/p/8536980.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!