今天(010115)帮朋友在他的redhat5.2的服务器上用centos的yum替换原有的,测试成功,记录一下:
1、看看系统:
uname -a
Linux hostname 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
2、卸载掉自带的yum:
rpm -aq|grep yum|xargs rpm -e --nodeps
3、 下载centos的安装包
wget http://ftp.sjtu.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm
wget http://ftp.sjtu.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm
wget http://ftp.sjtu.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
wget http://ftp.sjtu.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
wget http://ftp.sjtu.edu.cn/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
4、生成/etc/yum.repos.d/CentOS-Base.repo 文件,内容如下:
[base]
name=CentOS-5 - Base
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/x86_64/
gpgcheck=1
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-centos5
#released updates
[update]
name=CentOS-5 - Updates
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/x86_64/
gpgcheck=1
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-centos5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/x86_64/
gpgcheck=1
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-centos5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/x86_64/
gpgcheck=1
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-centos5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-centos5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-centos5
5、换了一个Key
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
分享到:
相关推荐
在虚拟机上安装redhat5.2和oracle10g.doc
redhat5.2 图解 说明文档 个人装过很多次服务器以及跟人电脑的UNIX环境 并且做过集群环境配置 想在将部分经验贡献
redhat5.2
redhat5.2安装图解,比较详细,希望有用
操作系统 Redhat5.2 32位 oracle版本:oracle11g
RedHat5.2安装oracle及安装前的准备工作
自己总结的在redhat5.2的opencv2.3.1的配置步骤,自己写的比较详细,适合刚开始接触的新手作为配置参考
redhat5.2安装全过程。如果在安装过程中需要安装各种驱动(如HBA卡驱动)请和本人联系,
RedHat Linux RHEL6配置本地YUM源
Redhat5.2系统基于IP-SAN组网指导书
redhat5可用的yum文件.及配置路径
redhat7使用yum需要收费,不能直接使用,需要使用centos7的yum源,本人看了一些文档和博客总结成了这个方法,成功地为redhat7配置好了yum,这个压缩包中包含配置yum的方法以及用到的文件,需要提前安装python,我的linux安...
RedHat 5.2+MYSQL集群主备+DRBD安装指南 Red Hat Enterprise Linux 5.2环境下,安装二台MYSQL服务器(主备式),通过heartbeat切换,DRBD储存共享。 利用heartbeat,启动mysql、mon。
redhat7.9 + yum.repos.d +CentOS7-Base-163.repo + Centos-7-aliyun.repo
安装了gcc后,源码安装gettext,再源码安装yum即可,亲测成功
亲自解决公司yum问题,特别研究编著.解决redhat在5.0及6.0的yum使用问题。
redhat更改为centOS-6.4 yum源相关安装包
按顺序安装以下包就可以完成GCC的安装了 1)[root@rhel5 Server]# rpm -ivh kernel-headers-2.6.18-53.el5.i386.rpm 2)[root@rhel5 Server]# rpm -ivh glibc-headers-2.5-18.i386.rpm 3)[root@rhel5 Server]# rpm ...
RedHat7无法使用自带的YUM(要求许可才能使用),可使用CentOS7的YUM进行安装程序。
内含需要安装的rpm包和修改后的yum源配置。 python-urlgrabber-3.9.1-11.el6.noarch....yum-metadata-parser-1.1.2-16.el6.x86_64.rpm yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm CentOS-Base.repo epel.repo