Step through Reading
The company is using Linux to build servers, Linux installation software can use Yum to install a dependency package is a very simple and happy thing, so here is a brief introduction to Linux installation Yum source process and operation.
Tools/Materials
- Computer
- Linux Basic Operational knowledge
Method/Step
- 1
View, uninstall the installed Yum Pack
View installed Yum Packages
#rpm –qa|grep Yum
Uninstalling packages
#rpm –e–nodeps Yum
- 2
Download install dependency package Python python-iniparse
http://centos.ustc.edu.cn/ centos/6.5/os/x86_64/packages/
http://mirrors.163.com/centos/6/os/x86_64/Packages/
Find the corresponding package such as: python-2.6.6-51.el6.x86_64.rpm python-iniparse-0.3.1-2.1.el6.noarch.rpm
Source address can be found on the Internet some faster, Self-test These two addresses are also at a good speed. The name of the package may be different from the above, mainly the version and operating system number of different, it is recommended not to search all on the page, such as the first package only search Python, the second package search Python-iniparse.
- 3
Installation
#rpm –IVH python-2.6.6-51.el6.x86_64.rpm python-iniparse-0.3.1-2.1.el6.noarch.rpm
Download Install Yum Pack
http://centos.ustc.edu.cn/centos/6.5/os/x86_64/Packages/
http://mirrors.163.com/centos/6/os/x86_64/Packages/
Find the corresponding package such as: http://centos.ustc.edu.cn/centos/6.5/os/x86_64/packages/yum- plugin-fastestmirror-1.1.30-14.el6.noarch.rpm yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
yum-3.2.29-40.el6.centos.noarch.rpm
#rpm-IVH yum-*
If the installation fails, you can re-enter this command and add the parameter--nodeps–force
Find the package in the same way as in step two, do not repeat here.
- 4
Change Yum Source
Download configuration file
Http://mirrors.163.com/.help/CentOS6-Base-163.repo
Replace this configuration file with the file with the same name/ETC/YUM.REPOS.D
Editing a configuration file
#cd/ETC/YUM.REPOS.D
#vi Centos-base.repo
- 5
Change the file $releasever to the corresponding version (6/6.5)
Change source mirrorlist.centos.org to used Yum source
centos.ustc.edu.cn
Mirrors.163.com
Save the configuration file to
- 6
Clean up Yum Cache
#yum Clean All
Cache Server package information locally to improve search installation efficiency
#yum Makecache
If the above two commands have an error, generally the configuration file changes are not complete, depending on the error information to find the configuration file in the change error
Test
#yum Install Vim
Complete
Installation and configuration of Yum under Linux