RHEL6 yum本地源配置

RHEL6 yum本地源配置

  1. 将RHEL6 的iso上传到/file1/xxx
  2. 新建目录/file1/xxx/mnt,将iso挂载到mnt目录
mount rhel-server-6.3-x86_64-dvd.iso -o loop mnt
  1. /etc/yum.repos.d目录新建配置文件local.repo
vi /etc/yum.repos.d/local.repo

  [iso]
baseurl=file:///file1/xxx/mnt
gpgkey=file:///file1/xxx/mnt/RPM-GPG-KEY-redhat-release
failovermethod=priority
enabled=1
gpgcheck=0
  1. yum install xxx
posted @ 2020-01-19 18:15  hayleeliu  阅读(195)  评论(0编辑  收藏  举报