歡迎您光臨本站 註冊首頁

RHEL_AS5_通過yum update自動升級

←手機掃碼閱讀     火星人 @ 2014-03-25 , reply:0

1.下載並安裝yum-2.4.0-1.centos4.noarch.rpm文件,下載地址為:

ftp://ftp.pbone.net/mirror/ftp.c ... 5.centos.noarch.rpm

2.修改或建立/etc/yum.repos.d/rhel-debuginfo.repo為如下內容:

[base]
name=Red Hat Enterprise Linux $releasever -Base
baseurl=http://ftp.riken.jp/Linux/caos/centos/5.0/os/$basearch/
gpgcheck=1
[update]
name=Red Hat Enterprise Linux $releasever -Updates
baseurl=http://ftp.riken.jp/Linux/caos/centos/5.0/updates/$basearch/
gpgcheck=1
[extras]
name=Red Hat Enterprise Linux $releasever -Extras
baseurl=http://ftp.riken.jp/Linux/caos/centos/5.0/extras/$basearch/
gpgcheck=1
[addons]
name=Red Hat Enterprise Linux $releasever -Addons
baseurl=http://ftp.riken.jp/Linux/caos/centos/5.0/addons/$basearch/
gpgcheck=1

3.修改或建立/etc/yum.repos.d/dag.repo為如下內容:

[dag]
name=Dag RPM Repository for RHEL5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=1
gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt

4.運行update:

yum update

5.升級:

yum upgrade

[火星人 ] RHEL_AS5_通過yum update自動升級已經有336次圍觀

http://coctec.com/docs/linux/show-post-167227.html