免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 670 | 回复: 0
打印 上一主题 下一主题

Yum RedHat Enterprise AS 5 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-17 05:16 |只看该作者 |倒序浏览
所需软件
Client:
yum-3.0.1-5.el5
yum-metadata-parser-1.0-8.fc6
Yum Server:
yum-3.0.1-5.el5
yum-metadata-parser-1.0-8.fc6
yum-rhn-plugin-0.4.3-1.el5
yum-updatesd-3.0.1-5.el5
createrepo-0.4.4-2.fc6.noarch.rpm
yum-arch-2.2.2-2.fc7.noarch.rpm(ftp://rpmfind.net/linux/)
配置
Server:
1.
[root@ns100 vmware]# mount -o loop 5.0-i386.iso /mnt
[root@ns100 vmware]# mkdir /rhel5
[root@ns100 vmware]# cp -R /mnt/Server /rhel5
[root@ns100 vmware]# cp /mnt/RPM-GPG-KEY-redhat-release /rhel5/Server
2.
[root@ns100 vmware]# yum-arch /rhel5/Server
[root@ns100 vmware]# createrepo /rhel5/Server
3.
[root@ns100 vmware]# cat /etc/yum.conf
[main]cachedir=/var/cache/yumkeepcache=0debuglevel=2logfile=/var/log/yum.logpkgpolicy=newestdistroverpkg=redhat-releasetolerant=1exactarch=1obsoletes=1gpgcheck=1plugins=1metadata_expire=1800[Server]gpgkey=http://10.0.0.1/Server/RPM-GPG-KEY-redhat-releasebaseurl=http://10.0.0.1/Server
4.
[root@ns100 vmware]# server httpd start
Client:
[root@network yum.repos.d]# mkdir -p  /etc/yum.repos.d/backup
[root@network yum.repos.d]# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup
[root@network yum.repos.d]# touch /etc/yum.repos.d/Server.repo
[root@network yum.repos.d]# cat /etc/yum.repos.d/Server.repo
[Server]name=Red Hatbaseurl=http://10.0.0.1/Server/gpgcheck=1gpgkey=http://10.0.0.1/Server/RPM-GPG-KEY-redhat-release
测试
Client:
[root@network yum.repos.d]#yum install httpd


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28922/showart_479403.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP