安装不上htop(更新yum源)

https://blog.csdn.net/upshi/article/details/78987509
1、yum install htop 安装不了
2、首先我们需要安装一个叫“epel-release”的软件包,这个软件包会自动配置yum的软件仓库。到下面的网址找你对应的CentOS版本和计算机架构:http://download.fedoraproject.org/pub/epel

我的是64位的CentOS7,对应的地址是:https://mirrors.ustc.edu.cn/epel//7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
3、wget https://mirrors.ustc.edu.cn/epel//7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
4、rpm -ivh epel-release-7-11.noarch.rpm
5、 yum clean all
6、 yum update
7、yum install htop

猜你喜欢

转载自blog.csdn.net/weixin_40974880/article/details/89634735