2018.09.20 16:15:52字數 46閱讀 357緩存
cd /etc/yum.repos.d
備份一下原來的yum源阿里雲
mv CentOS-Base.repo CentOS-Base.repo.bk
下載新的CentOS-Base.repo 到/etc/yum.repos.d/
以下的源用一個就好,三條命令選其一spa
//更新爲阿里雲的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo //更新爲163的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo //更新爲搜狐的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
運行yum makecache生成緩存code
yum clean all yum makecache
2018.09.20 16:15:52字數 46閱讀 357get
cd /etc/yum.repos.d
備份一下原來的yum源下載
mv CentOS-Base.repo CentOS-Base.repo.bk
下載新的CentOS-Base.repo 到/etc/yum.repos.d/
以下的源用一個就好,三條命令選其一yum
//更新爲阿里雲的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo //更新爲163的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo //更新爲搜狐的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
運行yum makecache生成緩存make
yum clean all yum makecache