没有合适的资源?快使用搜索试试~ 我知道了~
Rhel5的YUM安装配置
5星 · 超过95%的资源 需积分: 13 45 下载量 85 浏览量
2009-08-18
11:16:15
上传
评论
收藏 32KB DOC 举报
温馨提示
试读
3页
Rhel5的YUM安装配置方法,对于rehl5默认的带的有yum安装包,但是由于装的非正版的,因此红帽网站并不提供yum升级服务器,而我们采用centos的源文件,实现yum升级。
资源推荐
资源详情
资源评论
Rhel5 的 YUM 安装配置
1、 对软件包的安装
如果是应用 rhel5,系统自带的有 yum,可以修改下数据源,使用 centos5 的源:
首先,rhel5 系统安装的时候其实已经有 yum 了,只是因为如果用官方的网站更新的话除非你
是用钱买的 rhel5.否则它会提示注册之类的。所以只要把
yum 的更新地址改成开源的就行了。而限定 yum 更新地址的文件在/etc/yum.repos.d/里。先
把它们改成备份文件,即在后面加.bak。
[root@killgoogle ~]# mv /etc/yum.repos.d/rhel-debuginfo.repo
/etc/yum.repos.d/rhel-debuginfo.repo.bak
[root@killgoogle ~]# mv /etc/yum.repos.d/rpmforge.repo.rpmnew
/etc/yum.repos.d/rpmforge.repo.rpmnew.bak
建立新的配置文件:
[root@killgoogle ~]# cd /etc/yum.repos.d
[root@killgoogle ~]# touch rhel-debuginfo.repo
[root@killgoogle ~]# touch mirrors-rpmforge
[root@killgoogle ~]# touch rpmforge.repo
往新的配置文件写东西:
[root@killgoogle ~]#vi rhel-debuginfo.repo
[base]
name=CentOS-5 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=http://mirrorlist.centos.org/?
release=4&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=http://mirrorlist.centos.org/?
release=4&arch=$basearch&repo=addons
baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that may be useful
资源评论
- ystanglei2013-05-24谢谢提供方法 已经实现
- caonjiantong2012-12-18谢谢提供资源,但是自己还是没成功
liuyunfengheda
- 粉丝: 85
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功