**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 of other Yum source, and then configure other sources. * * This article includes configuring local sources and third-party sources. Third-party sources include: NetEase, Epel,repoforge, rpmfusion The following is a detailed process:
1. Delete Redhat original yum rpm-aq|grep Yum|xargs rpm-e–nodeps
2. Download Yum installation file Note, if the download can not find the file, log on to: http://mirrors.163.com/centos/6/os/x86_64/to find the appropriate file. Then download the following 4 RPM packages (the version may be different).
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
3. For installation Yum
RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm
RPM-IVH yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
RPM-IVH yum-3.2.27-14.el6.centos.noarch.rpm um-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm Note that the last two packages must be installed simultaneously. Otherwise they will depend on each other
4. Download the third party yum source here gives NetEase Http://mirrors.163.com/.help/CentOS6-Base-163.repo.
Also can have Sohu, oneself look for. Just love that. The downloaded file is placed under/etc/yum.repos.d/. If you do not use other repo files, it is a good idea to delete other repo files.
5. Note (1) If your baseurl cannot be accessed, it will appear
Http://mirrors.163.com/centos/%24releasever/os/x86_64/repodata/repomd.xml: [Errno] Pycurl ERROR-"The requested URL returned error:404 not Found "indicates a problem with BaseURL. Change all $releasever in baseurl=http://mirrors.163.com/centos/releasever/os/basearch/in the downloaded repo file to 6 (2) machine to be able to network, ping Www.baidu.com try, (3) Execute the command yum Clean All (4) Yum install gcc-c++. Installation instructions are successful.