![centos8平台yum无法安装一些常用软件的解决,如:screen,iftop,nethogs centos8平台yum无法安装一些常用软件的解决,如:screen,iftop,nethogs](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
一,例如:安装screen时报错:
[root@localhost liuhongdi]# yum install screen
上次元数据过期检查:17:39:58 前,执行于 2020年03月18日 星期三 18时08分13秒。
未找到匹配的参数: screen
错误:没有任何匹配: screen
说明:刘宏缔的架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest
对应的源码可以访问这里获取: https://github.com/liuhongdi/
说明:作者:刘宏缔 邮箱: 371125307@qq.com
二,解决:
centos8上yum源里面没有epel,而screen等一些软件被迁移到了epel源,
所以我们需要在centos8上先安装epel源
然后就可以安装screen了
[root@localhost liuhongdi]# yum install epel-release
三,重新尝试安装
[root@localhost liuhongdi]# yum install screen
[root@localhost liuhongdi]# yum install iftop
[root@localhost liuhongdi]# yum install nethogs
已不再提示匹配不到
四,查看本地centos的版本
[root@localhost liuhongdi]# cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)