System Yum source (source, English repository, is the meaning of the resource library; yum, full name of Yellow Dog Updater, modified, is the centos Software Package Manager. Based on RPM package management, You can automatically download and install the RPM package from the specified server, automatically process dependencies, and install all dependent software packages at a time .) In/etc/yum. Repos. d/, the system defaults to the source of the centos official website, and now changes it to the source of Netease 163. The modification steps are as follows:
- Go to the Yun source location and back up the original Yum Source:
# Cd/etc/yum. Repos. d
# Mv CentOS-Base.repo CentOS-Base.repo.bak
- Download the 163 Source:
# Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
# Mv CentOS6-Base-163.repo CentOS-Base.repo
- Download and install the epel (extra packages for Enterprise Linux) package:
# Wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# Wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# Rpm-IVH epel-release-6-8.noarch.rpm
# Rpm-IVH remi-release-6.rpm
- Modify the Remi configuration file:
# Vi/etc/yum. Repos. d/Remi. Repo
Change enable = 0 to enable = 1;
Remove the previous region of # baseurl = http://rpms.famillecollet.com/performanise/6/remi/?basearch;
In the detail list = https://mirrors.fedoraproject.org/metalink? Repo = epel-6 & arch = $ basearch plus #;
Save and exit.
- Re-establish buffer:
# Yum clean all
# Yum makecache
- Update Yum:
# Yum update
Certificate --------------------------------------------------------------------------------------------------------------------------------------------
References:
- Centos6.5 modify Yum Source: http://www.cnblogs.com/zhxin/p/3579190.html
- Install RHEL epel repo: http://www.cnblogs.com/zhxin/p/3579190.html on centos6.5
Configure the yum source of centos6.5