CentOS配置YUM源(16三、搜狐)

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源vim

經過如下命令安裝:ide

CentOS 6.x 32-bitget

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

CentOS 6.x 64-bitclass

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm軟件

CentOS 5.x 32-bit配置

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm下載

CentOS 5.x 64-bit方法

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpmim

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

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

相關文章
相關標籤/搜索