redhat as4 安装配置yum
时间:2010-08-06 来源:olivenan
1、下载安装包
http://www.chinalinuxpub.com/yum.tgz
2、安装
rpm -ivh *
3、配置yum源
修改配置文件/etc/yum.repos.d/CentOS-Base.repo
内容替换为如下,至此yum配置成功
[base]
name=CentOS-4 - Base
baseurl=http://mirror.centos.org/centos/4/os/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#released updates [update] name=CentOS-4 - Updates baseurl=http://mirror.centos.org/centos/4/updates/i386/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#packages used/produced in the build but not released [addons] name=CentOS-4 - Addons baseurl=http://mirror.centos.org/centos/4/addons/i386/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#additional packages that may be useful [extras] name=CentOS-4 - Extras baseurl=http://mirror.centos.org/centos/4/extras/i386/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#additional packages that extend functionality of existing packages [centosplus] name=CentOS-4 - Plus baseurl=http://mirror.centos.org/centos/4/centosplus/i386/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#contrib - packages by Centos Users [contrib] name=CentOS-4 - Contrib baseurl=http://mirror.centos.org/centos/4/contrib/i386/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#packages in testing [testing] name=CentOS-4 - Testing baseurl=http://mirror.centos.org/centos/4/testing/i386/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#released updates [update] name=CentOS-4 - Updates baseurl=http://mirror.centos.org/centos/4/updates/i386/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#packages used/produced in the build but not released [addons] name=CentOS-4 - Addons baseurl=http://mirror.centos.org/centos/4/addons/i386/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#additional packages that may be useful [extras] name=CentOS-4 - Extras baseurl=http://mirror.centos.org/centos/4/extras/i386/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#additional packages that extend functionality of existing packages [centosplus] name=CentOS-4 - Plus baseurl=http://mirror.centos.org/centos/4/centosplus/i386/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#contrib - packages by Centos Users [contrib] name=CentOS-4 - Contrib baseurl=http://mirror.centos.org/centos/4/contrib/i386/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#packages in testing [testing] name=CentOS-4 - Testing baseurl=http://mirror.centos.org/centos/4/testing/i386/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
相关阅读 更多 +