作者:Alpha 來源:Linux時代 (2007-02-08 17:06:43)
<a href="http://docs.huihoo.com/yum/managing-software-with-yum-zh_cn/index.html#sn-introduction">http://docs.huihoo.com/yum/managing-software-with-yum-zh_cn/index.html#sn-introduction</a>
<a href="http://fedora.linuxsir.org/main/?q=node/132">http://fedora.linuxsir.org/main/?q=node/132</a>
第一種方法:
yum源來自chinalinuxpub.com,用的是centos包,
安裝:
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]
baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/os/i***/RedHat/
然後就可以正常使用yum了.
第二種方法:利用CentOS 的yum庫更新RHEL AS4
1.下載下傳并安裝yum-2.4.0-1.centos4.noarch.rpm檔案,下載下傳位址為:
<a href="ftp://ftp.pbone.net/mirror/ftp.centos.org/4.2/os/alpha/CentOS/RPMS/yum-2.4.0-1.centos4.noarch.rpm">ftp://ftp.pbone.net/mirror/ftp.centos.org/4.2/os/alpha/CentOS/RPMS/yum-2.4.0-1.centos4.noarch.rpm</a>
2.修改或建立/etc/yum.repos.d/CentOS-Base.repo為如下内容:
name=CentOS-$releasever - Base
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/os/$basearch/
name=CentOS-$releasever - Updates
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/updates/$basearch/
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/addons/$basearch/
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/extras/$basearch/
今天剛好有一台遠端伺服器,用上了.很友善^_
3.修改或建立/etc/yum.repos.d/dag.repo為如下内容:
[dag]
name=Dag RPM Repository for RHEL4
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el4/en/$basearch/dag/
enabled=1
gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt
4.運作update:
yum update
5.更新:
yum upgrade
6.安裝其它軟體,例如:
yum install mplayer