The first method:
The Yum source comes from chinalinuxpub.com, using a CentOS package,
: http://www.chinalinuxpub.com/yum.tgz
Installation:
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
Join:
#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
Join:
#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 can then be used normally.
Said here, you know the importance of choosing a good cloud server.
Registered Address: https://www.pppcloud.cn/index.html?referral_code=MTQwMDM0MA==A8X5
Second approach: Upgrade Rhel AS4 with the Yum repository from CentOS
1. Download and install the yum-2.4.0-1.centos4.noarch.rpm file as:
ftp://ftp.pbone.net/mirror/ftp.centos.org/4.2/os/alpha/CentOS/RPMS/yum-2.4.0-1.centos4.noarch.rpm
2. Modify or establish the/etc/yum.repos.d/centos-base.repo as follows:
[Base]
name=centos-$releasever –base
baseurl=http://ftp.riken.jp/linux/caos/centos/4.0/os/$basearch/
Gpgcheck=1
#released Updates
[UPDATE]
name=centos-$releasever –updates
baseurl=http://ftp.riken.jp/linux/caos/centos/4.0/updates/$basearch/
Gpgcheck=1
#packages used/produced in the build and not released
[Addons]
name=centos-$releasever –addons
baseurl=http://ftp.riken.jp/linux/caos/centos/4.0/addons/$basearch/
Gpgcheck=1
#additional packages that could be useful
[Extras]
name=centos-$releasever –extras
baseurl=http://ftp.riken.jp/linux/caos/centos/4.0/extras/$basearch/
Gpgcheck=1
3. Modify or establish the/etc/yum.repos.d/dag.repo as follows:
[Dag]
Name=dag RPM Repository for RHEL4
baseurl=http://ftp.riken.jp/linux/dag/redhat/el4/en/$basearch/dag/
Enabled=1
Gpgcheck=1
Gpgkey=http://ftp.riken.jp/linux/dag/packages/rpm-gpg-key.dag.txt
4. Run UPDATE:
Yum Update
5. Upgrade:
Yum Upgrade
6. Install other software, for example:
Yum Install MPlayer
As4 via Yum Auto-upgrade implementation