Users who have installed the Linux software know that sometimes we install a software, need to rely on other software, so we have to find all the software, this is a very troublesome thing, there is no way to let it find its own dependence?
The answer is certainly, this requires us to configure an artifact--yum, through which we can directly install the software, we only need to know the name of the software can be, let it put all the dependencies are directly connected to install. However, I recently used yum time, found a very disgusting thing, is redhat brought Yum very annoying.
Because Redhat Yum online update is charged, if not registered words can not be used, if you want to use, you need to redhat yum Uninstall, restart the installation, and then configure other sources, the following is the detailed process:
First, change the Yum software
1. Delete Rhel yum--This yum is very depressing, always show that a few lines of disable words, very annoying, direct uninstall system from the Yum
Rpm-aq | grep Yum | Xargs rpm-e--nodeps
2. Download the CentOS yum and its dependent plug-ins
wget http://mirrors.163.com/centos/6/os/i386/Packages/yum-3.2.29-30.el6.centos.noarch.rpm
wget http:// mirrors.163.com/centos/6/os/i386/packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm
wget http:// mirrors.163.com/centos/6/os/i386/packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
wget http:// mirrors.163.com/centos/6/os/i386/packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
If the above mirrors are not found, look for other mirrors, such as: http://mirrors.sohu.com/centos/6.4/os/i386/Packages/
This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/
3. Installation of new Yum
RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm
RPM-IVH yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm yum-3.2.29-30.el6.centos.noarch.rpm yum-metadata-parser-1.1.2-16.el6.i686.rpm
4. Cleaning up Yum
Yum Clean All
Suggest the best bar Rhel....repo This warehouse delete, in/ETC/YUM.REPOS.D This folder, VIM/ETC/YUM.REPOS.D directly delete can.
(ii) configuration of Yum sources (official)
1. Enter the following command at the terminal (RHEL6/CENTOS6)
wget http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2
2, converted to just download the file directory
Cd/etc/yum.repos.d
If it is RHEL6 's words ls, you can see the centos?codeblock=2 file
3, change the name of the warehouse
MV Centos?codeblock=2 Centos-base.repo
4, the Centos-base.repo $releasever changed to 6 command: Vim Centos-base.repo
5, clean Yum
Yum Clean All
6. Generate Cache
Yum Makecache
So the Yum source is configured to complete.
Author: csdn Blog mr-Rice Handsome