1.安装epel原
EPEL的yum源是很稳定的第三方yum安装源,也是我经常使用的,基于CentOS/RHEL7.x的也有了,整理如下:
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
# rpm -ivh epel-release-7-5.noarch.rpm
验证查看是否安装成功:
yum repolist
查看某个包的详细信息:
yum --enablerepo=epel info htop
sudo yum install nodejs npm --enablerepo=epel
原文:http://www.cnblogs.com/tatamizzz/p/4875073.html