cundeng 发表于 2018-5-10 11:15:28

redhat使用光盘搭建本地源

  1、把光盘挂在到/mnt目录下面
  # mount /dev/cdrom /mnt
  mount: block device /dev/cdrom is write-protected, mounting read-only
  2、配置yum源
  在/etc/yum.repo.d/目录下新建一个myrhel.repo的文件,在文件中添加如下内容:
  vi/etc/yum.repo.d/myrhel.repo

  name=Rad Hat Enterprise Linux 6.3
  baseurl=file:///mnt/Server
  enabled=1
  gpgcheck=0
  gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release
页: [1]
查看完整版本: redhat使用光盘搭建本地源