centos8平台yum无法安装一些常用软件的解决,如:screen,iftop,nethogs

一,例如:安装screen时报错:

[root@localhost liuhongdi]# yum install screen
上次元数据过期检查:17:39:58 前,执行于 2020年03月18日 星期三 18时08分13秒。
未找到匹配的参数: screen
错误:没有任何匹配: screen

 

说明:刘宏缔的架构森林是一个专注架构的博客,

网站:https://blog.imgtouch.com
本文: https://blog.imgtouch.com/index.php/2023/05/21/centos8linuxyum-wu-fa-an-zhuang-yi-xie-chang-yong-ruan-jian-de-jie-jue-ru-screeniftopnethogs/

         对应的源码可以访问这里获取: 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)

 

posted @ 2020-03-19 12:00  刘宏缔的架构森林  阅读(7591)  评论(0编辑  收藏  举报