Rhel4 的 yum 安装配置
首先我们下载 yum 软件包:
http://www.chinalinuxpub.com/yum.tgz
然后按照下面的不走进行安装
#tar -zxvf yum.tgz
#cd yum
#rpm -ivh *.rpm
这个虽然是 centos 的 yum 包,不过进行稍微的修改就可以使用了:
#rm -rf /etc/yum.repos.d/CentOS-Base.repo
第一步:#vi /etc/yum.repos.d/as4-update.repo
加入:
#released updates
[update]
name=Red Hat Enterprise AS release 4 Updates
baseurl=http://centos.ustc.edu.cn/centos/5/os/i386/
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub
第二步:vi /etc/yum.repos.d/as4-base.repo
加入:
#released base
[base]
name=Red Hat Enterprise AS release 4 Updates
baseurl=http://centos.ustc.edu.cn/centos/5/os/i386/
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub
保存然后就可以用 yum 通过本站升级你得 AS4 了,所有的升级包由本站做的签名,我会在
最短的时间内提供最新的升级包
升级系统用 yum update 即可
但是鉴于上面的网站 yum 提供的安装包并不完全,因此进入下面的网站:
http://rpm.pbone.net/index.php3
然后点击 【YUM REPO】项进入注册页面,直接在里面输入用户名、密码、邮箱,然后点
击【Register】进行注册,然后进邮箱确认后进行登录就可以免费使用 14 天,14 天之后再
进入这个页面进行重新注册就可以了。登录之后【Yum conf】,然后选择你系统的版本型
号,然后点击【Generate】生成你的 Yum 配置文件,然后 vi /etc/yum.repos.d/pbone.repo
加入类似与下面的生成的代码:
[42i386]
name=PBONE RedHat EL 4 i386
baseurl=http://yum.pbone.net/42/i386/
gpgcheck=0
proxy=http://proxy.pbone.net:3127/
proxy_username=liuyunfeng
评论2