Welcome 微信登录

首页 / 操作系统 / Linux / RHEL5.1配置光盘yum

RHEL5.1竟然无法使用光盘直接配置YUM,这个貌似在5.4之后就可以了。不过5.1的配置也很简单,操作步骤如下。
rpm -Uvh createrepo*
createrepo /opt/disk/Server
把/etc/yum.repos.d/目录下原来的repo文件删除掉,然后创建新的repo文件
vi /etc/yum.repos.d/51.repo

[rhel5.1]
name = Linux 5.1 DVD
baseurl=file:///opt/disk/Server/
gpgcheck=0
enabled=1

yum clean all
接着就可使用YUM了。
-The End-CentOS 相关服务Linux grep命令使用详解相关资讯      RHEL 
  • Red Hat Enterprise Linux 7.2 发  (11/20/2015 13:39:31)
  • 使用Windows 2003 Server R2给RHEL  (01/03/2015 09:14:16)
  • Red Hat Enterprise Linux 5.11 发  (09/17/2014 09:40:49)
  • 在VMware中安装RHEL6.2(下)——   (01/07/2015 12:24:47)
  • 红帽企业 Linux (RHEL) 7.1 Beta   (12/12/2014 09:44:13)
  • Red Hat Enterprise Linux 6.6   (08/13/2014 13:43:14)
本文评论 查看全部评论 (0)
表情: 姓名: 字数