实现:让linux服务器能自动安装你需要的一些依赖包、补丁等 ,以便你安装调试各种服务器,安装软件时不必自己去找各种依赖包、补丁
redhat AS4安装yum
方法一
1、下载下列rpm包
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
可以直接下载地址:
[url]http://www.chinalinuxpub.com/yum.tgz[/url]得到
2、安装上述rpm包
rpm -ivh *.rpm
3、将原先的centos库去除并添加AS4库
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]
name=Red Hat Enterprise AS release 4 Updates
baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/os/i386/RedHat/
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub
至此yum便可以用了。