rhel5.3服务器安装centOS的yum源

在网上看到好多的关于这个方面的帖子,最近上了台rhel5.3的 服务器,苦于安装时候缺少了gd库,又不想跑机房,就倒弄,给它装上 centos的yum源!
把自己安装过程写下来,网上有的写得不够详细,自己整理了下!

1.删除rhel5.3自带的yum
rpm -aq|grep yum|xargs rpm -e --nodeps
2. 下载所需的rpm包
wget http://centos.ustc.edu.cn/centos/5.3/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm

wget http://centos.ustc.edu.cn/centos/5.3/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm

wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm

wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
3.安装rpm包
安装顺序:
rpm -ivh python-iniparse-0.2.3-4.el5.noarch.rpm

rpm -ivh yum-metadata-parser-1.1.2-2.el5.i386.rpm

rpm -ivh yum-3.2.19-18.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
注意:在这个地方第三步一定要两个一起安装,要不会会出现错误:
4.下载配置源:
cd /etc/yum.repos.d/

wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
5.开始享受yum吧
yum update

你可能感兴趣的:(centos,职场,yum,休闲,RHEL5.3)