使用yum自動更新RedHat AS 4

下载安装配置yum

从</span>http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.7-1.noarch.rpm 下载,并安装</span>yum安装后要注意的是一下三个文件</span>
/etc/cron.daily/yum.cron
#每日进行yum 及</span> 其他软件包定时升级</span>
/etc/init.d/yum
#yum服务
/etc/yum.conf
#yum配置文件

接下来修改</span>/etc/yum.conf
vi /etc/yum.conf

将</span>
[base]
name=Red Hat Linux $releasever – $basearch – Base
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/

[updates]
name=Red Hat Linux $releasever – Updates
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/

改为

[base]
name=CentOS 4.4 for RHEL4 – Base #
随便取名字</span>
baseurl=
http://mirror.be10.com/centos/4.4/os/i386/


[updates]
name=CentOS 4.4 for RHEL4 – Updates #
随便取名字</span>
baseurl=
http://mirror.be10.com/centos/4.4/updates/i386/

输入命令
yum update

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注