CentOS配置YUM源(163、搜狐)


CentOS自帶的YUM源下載速度太慢,一般都換成國內的YUM源,一般網易的是比較快的,下載速度可達到700/S左右,而且更新速度快。
正題:
更新方法如下:
先進入yum源配置目錄
cd /etc/yum.repos.d
備份系統自帶的yum源
mv CentOS-Base.repo CentOS-Base.repo.save
下載yum源
163的yum源:
wget http://mirrors.163.com/.help/CentOS-Base-163.repo

sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

更新玩yum源後,建議更新一下,使操作立即生效
yum makecache

爲CentOS安裝EPEL軟件倉庫

EPEL全稱: Extra Packages for Enterprise Linux.傳說中最全的yum源

通過以下命令安裝:

CentOS 6.x 32-bit

rpm -Uvhhttp://mirror.overthewire.com.au/pub/epel/6/i386/epel-release-6-7.noarch.rpm

CentOS 6.x 64-bit

rpm -Uvhhttp://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm

CentOS 5.x 32-bit

rpm -Uvhhttp://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

CentOS 5.x 64-bit

rpm -Uvhhttp://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

想暫停使用EPEL,在下面的文件中設置enabled=0即可.

vim /etc/yum.repos.d/epel.repo




轉載至  http://hongyuan1989.blog.51cto.com/2763144/1003927

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章