yum更新redhat企业版5.2
linux是开源的,但并不意味着有免费的午餐。企业版的iso可以在网上下载到,但是更新需要收费。我们知道CentOs是免费的,可以用CentOs包来更新redhat系统。步骤如下:
1、先卸载redhat自带的yum
rpm -aq|grep yum|xargs rpm -e --nodeps
|
2、下载CentOs的yum包
wget http://mirrors.163.com/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm wget
|
3、安装yum,注意一定要同时安装这几个包,否则会出现相互依赖(搞对象这样就好,但这里不行)
rpm -ivh python-iniparse-0.2.3-4.el5.noarch.rpm \ yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm \ yum-3.2.22-20.el5.centos.noarch.rpm \ yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
|
4、下载安装配置文件
wget http://sudone.com/download/CentOS-Base.repo -O /etc/yum.repos.d/CentOS-Base.repo
|
5、更新你的系统吧,可能需要反复运行`yum update`才行,因为有的软件包可能会下载失败,写个简单的脚本吧
#!/bin/bash #update your os while : do yes|yum update sleep 100 done
|
6、更新完了么?没这么快哦。。睡觉去吧,等你醒来就好啦!!
阅读(1052) | 评论(0) | 转发(0) |