Implementation: enables Linux servers to automatically install the dependent packages and patches you need, so that you can install and debug various servers. You do not have to find various dependent packages and Patches when installing software.
Install yum in RedHat as4
Method 1
1. download the following RPM packages
Centos-yumconf_4-4.3_noarch.rpm
Python-urlgrabber_2.9.6-2_noarch.rpm
Python-elementtree_1.2.6-4_i386.rpm
Sqlite_3.2.2-1_i386.rpm
Python-sqlite_1.1.6-1_i386.rpm
Yum_2.4.0-1.centos4_noarch.rpm
You can get it directly at http://www.chinalinuxpub.com/yum.tgz.
2. Install the above RPM package
Rpm-IVH *. rpm
3. Remove the original centos database and add the as4 Database
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
Base url = 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
Base url = http://ftp.chinalinuxpub.com/redhat/enterprise/ OS /i386/RedHat/
Gpgcheck = 1
Gpgkey = http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub
Now Yum can be used.