ITPub博客

首页 > Linux操作系统 > Linux操作系统 > rhel6.4本地配置yum

rhel6.4本地配置yum

原创 Linux操作系统 作者:sky850623 时间:2016-01-25 19:33:07 0 删除 编辑
1.挂载
[root@localhost cdrom]# mount -o loop /u01/Red\ Hat\ Enterprise\ 6.5\ x86_64.iso  /mnt/cdrom
2.vi rhel-source.repo
[root@localhost yum.repos.d]# cat rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release

3.
sed -i "s#remote = url + '/' + relative#remote = '/mnt/cdrom' + '/' + relative#g" /usr/lib/python2.6/site-packages/yum/yumRepo.py

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

下一篇: linux分区(1)
请登录后发表评论 登录
全部评论

注册时间:2013-05-30

  • 博文量
    154
  • 访问量
    515362