切换国内源
cd /etc/yum.repo.d/
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum update
安装EPEL仓库
yum -y install epel-release
安装IUS仓库
rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm
安装REMI仓库
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
查看yum软件仓库列表
yum repolist
生成缓存
yum clean all yum makecache
更新日期: 2018年06月01日
文章标签: Linux
文章链接: https://www.vos.cn/os/219.html
版权说明:如非注明,本站文章均为vOS原创,转载请注明出处和附带本文链接。
文章标签: Linux
文章链接: https://www.vos.cn/os/219.html
版权说明:如非注明,本站文章均为vOS原创,转载请注明出处和附带本文链接。