第一步:
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
[root@node2 yum.repos.d]# vi CentOS-Base.repo
# CentOS-Base.repo
#
# CentOS-4 is past End of Life ... use at your own risk
#
[base]
name=CentOS-$releasever - Base
baseurl=
gpgcheck=1
gpgkey=
protect=1
priority=1
#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=
gpgcheck=1
gpgkey=
protect=1
priority=1
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=
gpgcheck=1
gpgkey=
protect=1
[csgfs]
name=CentOS-$releasever - Contrib
baseurl=
gpgcheck=1
enabled=0
gpgkey=
protect=1
priority=2
priority=1
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=
gpgcheck=1
gpgkey=
protect=1
priority=1
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=
protect=1
priority=2
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=
gpgcheck=1
enabled=0
gpgkey=
protect=1
priority=2
[csgfs]
name=CentOS-4 - CSGFS
baseurl=
gpgcheck=1
enabled=1
阅读(1689) | 评论(0) | 转发(0) |