Centos系統配置國內知名yum源
阿新 • • 發佈:2018-04-18
linux 運維工程師 網易官方源
centos6.x
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.$(date +%F)
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
yum clean all
yum makecache
eple源
yum -y install epel-release
centos6.x
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.$(date +%F)
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
yum clean all
yum makecache
eple源
yum -y install epel-release
網易官方源
centos7.x
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.$(date +%F)
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all
yum makecache
RHEL 官方擴展源
yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
阿裏官方yum源
CentOS 6.x
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.$(date +%F)
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum clean all
yum makecache
阿裏官方yum源
CentOS 7.x
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.$(date +%F)
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
Centos系統配置國內知名yum源