RHEL5系统下配置CENTOS YUM源升级的方法
1. 安装yum
RHEL5系统下已缺省安装。
2. 修改两个.repo文件
cd /etc/yum.repos.d/
#vi CentOS-Base.repo
[base]
name=CentOS-5 - Base
#mirrorlist=
repo=os
#baseurl=
baseurl=
gpgcheck=1
gpgkey=
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=
baseurl=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=
baseurl=
gpgcheck=1
enabled=0
gpgkey=
修改dag.repo文件
# vi dag.repo
[dag]
name=Dag RPM Repository for RHEL5
baseurl=
enabled=1
gpgcheck=1
gpgkey=
3. 导入key
#rpm --import
4. 运行,测试
# yum list
#yum update
阅读(1566) | 评论(0) | 转发(0) |