1. 程式人生 > >60.更換Yum源

60.更換Yum源

第一步 repo mirrors oca 提示 iyu sta 擴展 fast

註:有一些yum源提供的軟件不全或者下載的速度 就比如國外的。。。

更換yum源

相關命令

wget
rm
cp

案例

第一步

cp -rf /etc/yum.repos.d /bf/
PS:對源文件進行備份

第二步

[root@localhost yum.repos.d]# rm -rf /etc/yum.repos.d/*
PS:把yum源刪掉

第三步

[root@localhost yum.repos.d]# wget http://mirrors.aliyun.com/repo/epel-6.repo
[root@localhost yum.repos.d]#wget http://mirrors.aliyun.com/repo/Centos-6.repo

下載yuan

第四步

[root@localhost yum.repos.d]# yum repolist
PS:進行更新



知識小提示:

安裝擴展源

[root@localhost yum.repos.d]# yum install -y epel-release
已加載插件:fastestmirror
Loading mirror speeds from cached hostfile

60.更換Yum源