码迷,mamicode.com
首页 > 其他好文 > 详细

rhel5.8 ISO yum源配置

时间:2015-06-02 20:13:32      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:

[root@lei1 mnt]# mkdir /mnt/iso
[root@lei1 mnt]# mkdir /mnt/cdrom

[root@lei1 ~]# mv rhel-server-5.8-x86_64-dvd.iso /mnt/iso
[root@lei1 ~]# cd /mnt/iso
[root@lei1 iso]# ll
total 4032884
-rw-r--r-- 1 root root 4125638656 May 28 18:51 rhel-server-5.8-x86_64-dvd.iso


[root@lei1 iso]# mount -o loop /mnt/iso/rhel-server-5.8-x86_64-dvd.iso  /mnt/cdrom
[root@lei1 iso]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      872G   12G  815G   2% /
/dev/sda1             190M   13M  168M   7% /boot
tmpfs                 2.0G     0  2.0G   0% /dev/shm
/mnt/iso/rhel-server-5.8-x86_64-dvd.iso
                      3.9G  3.9G     0 100% /mnt/cdrom
[root@lei1 iso]#


[root@lei1 yum.repos.d]# cat /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/cdrom/Server      ---->修改此处为合适的路径
enabled=1                             ---->修改此处为1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@lei1 yum.repos.d]# 



 

rhel5.8 ISO yum源配置

标签:

原文地址:http://blog.csdn.net/msdnchina/article/details/46333785

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!