Reference article: 51CTO recommended Blog-CentOS yum Source Configuration Tips
This article refers to the above blog, and make some adjustments.
Brief Introduction:
Linux package rpm is convenient to use, but it does not solve some of the dependencies of the software package, if there is a dependency when installing the package, using Yum can easily solve the package dependencies, but also easy to manage a large number of package updates;
Characteristics of Yum:
1), can be configured at the same time multiple resource pool (Repository);
2), concise configuration file (/etc/yum.conf);
3), automatically add or remove the installation of the RPM package of the Lai-package;
4, maintain the consistency with the RPM database.
CentOS6.5 Configure the Yum resource pool:
NetEase (163) Yum Source is one of the best yum sources, whether it is the speed or software version, are very good, the Yum source set to 163yum, you can upgrade the package installation and update speed, while avoiding some common software version can not be found. The specific settings are as follows:
1, into the Yum source configuration directory, backup system with the source configuration:
# cd/etc/yum.repos.d/#
MV Centos-base.repo centos-base.repo.bak
# mv Centos-debuginfo.repo Centos-debuginfo.repo.bak
# mv Centos-media.repo Centos-media.repo.bak
# mv Centos-vault.repo Centos-vault.repo.bak
2, download 163 yum Source:
# wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
3, update the 163 yum source, the following command to update the Yum configuration, so that the operation immediately effective:
# yum Makecache