yum源修改

國內比較好的yun數據源有: 網易,中科大,sohu 等 ,
主要記錄網易源的修改更新緩存

  1. 備份原數據源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
  1. 進入yum源配置文件所在文件夾
cd /etc/yum.repos.d/
  1. 下載163的yum源配置文件,放入/etc/yum.repos.d/(操做前請作好相應備份)
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
  1. 生成緩存
yum makecache
  1. 更新系統
yum -y update
相關文章
相關標籤/搜索