アリユムソースの設定
1005 ワード
http://mirrors.aliyun.com/help/centos?spm=5176.bbsr150321.0.0.d6ykiD
1、バックアップ
CentOS 5
CentOS 6
CentOS 7
3、yum clean allを実行してyum makecacheを実行してキャッシュを生成します。
1、バックアップ
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、新しいCentOS-Base.repoをダウンロードして/etc/yum.repos.d/CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、yum clean allを実行してyum makecacheを実行してキャッシュを生成します。