Redhat 5使用contos yum源
首先我们通过rpm -qa | grep yum看一下目前的的REDHAT上面的YUM的安装包
删除如下三个包,其它的可不用管,事实上管了会出现相关问题
rpm -e yum-updatesd-3.0.1-5.el5
rpm -e yum-rhn-plugin-0.4.3-1.el5
rpm -e yum-3.0.1-5.el5
删除了以后下载centos的源安装包,如下:
wget
wget
wget
wget
通过rpm -ivh 安装以上四个包文件,完成以后
touch /etc/yum.repos.d/CentOS-Base.repo
vi /etc/yum.repos.d/CentOS-Base.repo
以下是上海交大的yum源:
[base]
name=CentOS-5 - Base
#mirrorlist=
repo=os
#baseurl=
baseurl=
gpgcheck=0
gpgkey=
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=
baseurl=
gpgcheck=0
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=
baseurl=
gpgcheck=0
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=
baseurl=
gpgcheck=0
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=
baseurl=
gpgcheck=0
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=
baseurl=
gpgcheck=0
enabled=0
gpgkey=
阅读(969) | 评论(0) | 转发(0) |