单位的机器上刚装了RHEL4服务器,不过没有购买red hat的服务,怎么更新呢,在网上搜索了一下发现可以通过chinalinuxpub提供的yum更新,安装步骤如下:
下载地址: http://www.chinalinuxpub.com/yum.tgz
tar zxvf yum.tgz
cd yum
rpm -ivh *.rpm
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://ftp.chinalinuxpub.com/redhat/enterprise/updates/4AS/
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://ftp.chinalinuxpub.com/redhat/enterprise/os/i***/RedHat/
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub
这时候yum update会出现
The GPG keys listed for the "Red Hat Enterprise AS release 4 Updates" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.
的错误
这时候rpm --import /usr/share/rhn/RPM-GPG-KEY
yum就可以正常update了
2007年5月30日
订阅:
博文评论 (Atom)
没有评论:
发表评论