Build CentOSyum under 64-bit RedHatEterprise6.3 -- delete the original yumrpm-aq | grepyum | xargsrpm-e & ndash; nodeps to download the yum Installation File wgethttp: // uninstall
Build CentOS yum in 64-bit RedHat Eterprise 6.3
-- Delete the original yum of redhat
Rpm-aq | grep yum | xargs rpm-e-nodeps
Download the yum Installation File
Wget http://mirrors.163.com/centos/6.3/ OS /x86_64/Packages/yum-3.2.29-30.el6.centos.noarch.rpm
Wget http://mirrors.163.com/centos/6.3/ OS /x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm
Wget http://mirrors.163.com/centos/6.3/ OS /x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
Wget http://mirrors.163.com/centos/6.3/ OS /x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
Install yum
Rpm-ivh python *
Rpm-ivh yum *
Change yum source # We use Netease's CentOS Image Source
Cd/etc/yum. repos. d/
Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
Vim CentOS6-Base-163.repo # editing files
Replace all $ releasever in the file with the version number, that is, 6.3 is last saved!
# Clear yum Cache
Yum clean all
# Cache the software package information on the server to a local machine to speed up searching and installing software
Yum makecache
# Test it. It's easy to use.
Yum install gcc