CentOS6.10 更改yum源
2019-11-11 本文已影响0人
明月7
1、备份/etc/yum.repos.d/CentOS-Base.repo:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载163源:
cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv /etc/yum.repos.d/CentOS6-Base-163.repo /etc/yum.repos.d/CentOS-Base.repo
3、安装eple源:
sudo rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
4、检查yum源:
yum repolist
5、清除及生成缓存:
yum clean all
yum makecache
5、使用yum安装软件(examples):
yum -y install docker-io