centos7停止维护后更换yum源编译安装htop 1234rm -rf /etc/yum.repos.d/*wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repoyum -y install epel-releaseyum clean all && yum makecache 12345yum install ncurses-develwget https://hisham.hm/htop/releases/2.2.0/htop-2.2.0.tar.gztar xvf htop-2.2.0.tar.gzcd htop-2.2.0./configure && make && sudo make install 2025/05