I just installed the RedHat 6 system, but when using yum, it always prompts nothing and everything. Later, after a search, Red Hat's Yum online update is chargeable and must be registered before it can be used.
Before using Ubuntu because the foreign apt-get source too slow can update the domestic source, LZ often used is the source of NetEase or some of the source of higher education. LZ then thought of replacing the source of Yum to solve the problem.
Later discovered that you want to use other sources, you have to uninstall RedHat's own yum, re-install to reconfigure other sources.
Although it sounds very troublesome, but actually operation is also very simple, follow the LZ piece to do it:
1. Uninstall RedHat's own Yum
Rpm-aq | grep Yum | Xargs rpm-e--nodeps
2. Download the relevant installation package
http://mirrors.163.com/centos/6/os/x86_64/Packages/
Can be found in this address the corresponding installation package, the address of the package URL seems to change, so LZ will not directly provide the address, you according to the package name to go inside to search it, download down on the line.
Download the tool on the casual, LZ with the wget.
List of packages to download:
python-iniparse-0.3.1-2.1.el6.noarch.rpm
yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
yum-3.2.29-60.el6.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
3. Install Yum
RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm
RPM-IVH yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
RPM-IVH yum-3.2.29-60.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
Note that the last two packages must be installed in one piece, otherwise the installation will fail because of mutual dependence! LZ here was the pit for half a day.
4. Configure NetEase Source
If/etc/yum.repos.d/rhel-debuginfo.repo this file exists, back it up:
Mv/etc/yum.repos.d/rhel-debuginfo.repo/etc/yum.repos.d/rhel-debuginfo.repo.bak
If it doesn't exist, create it directly:
Touch/etc/yum.repos.d/rhel-debuginfo.repo
Edit it:
Vim/etc/yum.repos.d/rhel-debuginfo.repo
The contents are as follows:
[Base]
name=centos-$releasever-base
baseurl=http://mirrors.163.com/centos/6/os/$basearch/
Gpgcheck=1
Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6
#released Updates
[Updates]
name=centos-$releasever-updates
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/
Gpgcheck=1
Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6
#packages used/produced in the build and not released
#[addons]
#name =centos-$releasever-addons
#baseurl =http://mirrors.163.com/centos/$releasever/addons/$basearch/
#gpgcheck =1
#gpgkey =http://mirrors.163.com/centos/rpm-gpg-key-centos-6
#additional packages that could be useful
[Extras]
name=centos-$releasever-extras
baseurl=http://mirrors.163.com/centos/6/extras/$basearch/
Gpgcheck=1
Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6
#additional packages that extend functionality of existing packages
[Centosplus]
name=centos-$releasever-plus
baseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/
Gpgcheck=1
Enabled=0
Well, test it!
Yum-y Update
Reference: http://blog.itpub.net/25313300/viewspace-708509/
REDHAT Yum uses NetEase source