ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 配置rhel5上面本地yum

配置rhel5上面本地yum

原创 Linux操作系统 作者:wisdomone1 时间:2010-07-26 13:40:29 0 删除 编辑
[root@rhel5 Server]# more /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/

enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
 
###这是要添加的,根据上面的格式
[Server]
name=Red Hat Enterprise Linux $releasever - $basearch -Server
baseurl=file:///media/Server  ##这就是yum本地安装源,其实就是rhel5安装介质的目录
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@rhel5 Server]#
 
##测试yum
 
 
yum install tomcat5-5.5.23-0jpp.7.el5_2.1.i386.rpm
 
会把所有与tomcat相依赖的包全然装上,这下可方便了,比rpm要强大多了

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-669461/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: linux vnc配置指南
请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12690159