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