64位RedHat Eterprise 6.3下搭建CentOS yum
–删除redhat原有的yum
rpm -aq|grep yum|xargs rpm -e –nodeps
下载yum安装文件
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
进行安装yum
rpm -ivh python*
rpm -ivh yum*
更改yum源 #我们使用网易的CentOS镜像源
cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
vim CentOS6-Base-163.repo #编辑文件
把文件里面的$releasever全部替换为版本号,即6.3最后保存!
#清理yum缓存
yum clean all
#将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
yum makecache
#测试一下,好用了,呵呵。
yum install gcc