Chinaunix

标题: RHEL4通过YUM实现自动升级---据原文修改 [打印本页]

作者: solo206    时间: 2008-03-22 11:15
标题: RHEL4通过YUM实现自动升级---据原文修改
RHEL4通过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了.

说明一下,这个本来是从网上贴下来的,但是我试验后没有成功。经过一点小小的改动,可以升级了。

此处改动:

baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/os/i***/RedHat/

改成这样:

http://ftp.chinalinuxpub.com/redhat/enterprise/os/i386/RedHat/

可能是因为chinalinuxpub上只有i386文件夹,通配没有生效。不该就没有升级成功。

有很多人都在问linux下的qq。lumaqq好像不能登陆了,反正我的是不能用了。我推荐一个pidgin。可以登陆很多聊天工具。

正好试一下yum!

这是官方网站:

http://www.pidgin.im/download/centos_rhel/

下面是官方的说明,挺简单的英语。

To install Pidgin on CentOS 4 or 5, or RHEL 5, save the pidgin.repo file from above in /etc/yum.repos.d/
You can then use "yum install pidgin", or your favorite package manager, to install Pidgin
To install Pidgin on RHEL 4, add the following line to /etc/sysconfig/rhn/sources:
yum pidgin http://rpm.pidgin.im/rhel/4/$ARCH
You will also need to install the GPG signing key manually:
rpm --import http://rpm.pidgin.im/RPM-GPG-KEY-pidgin
You can then use "up2date -u pidgin" to install Pidgin.
ok ?!!!


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/52819/showart_503549.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2