Since the service is chargeable, Yum may not be available when installing the Redhat system. China has a lot of good image source, we can change the Yum source to the domestic mirror source, the steps are as follows:
First, uninstall the local Yum
#rpm –qa|grep Yum|xargs Rpm–e–nodeps
Second, find the corresponding Redhat version in the image source
Choose according to your system's version and bit width
If it is a redhat5,32 bit, select http://mirrors.ustc.edu.cn/centos/5/os/i386/CentOS/
If it is a redhat5,64 bit, select
http://mirrors.ustc.edu.cn/centos/5/os/x86_64/CentOS/
If it is a redhat6,32 bit, select
http://mirrors.ustc.edu.cn/centos/6/os/i386/CentOS/
If it is a redhat6,32 bit, select
http://mirrors.ustc.edu.cn/centos/6/os/x86_64/CentOS/
Find the names of the following 3 packages: Yum, Yum-fastestmirror, Yum-metadata-parser
Download to local using the wget command
#wget http://mirrors.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-19.el5.centos.noarch.rpm
Third, install the three packages just downloaded
#rpm –IVH yum-*
Iv. Download the update source and store it in the system directory
# wget Http://www.linuxidc.com/files/2011/05/06/CentOS-Base.repo
#mv Centos_base.repo/etc/yum.repos.d/centos-base.repo
V. Generate the cache and try to install
#yum Makecache
#yum Install httpd
Configuring the image Yum Source--solving the problem of the portal not available