用iso建立本地yum源

http://www.ibm.com/developerworks/cn/linux/l-cn-yum/index.html?ca=drs-

首先将ISO文件解压到/media/cdrom下

mount -o loop /home/luch/setup/Linux.5.4.rhel-server-5.4-i386-dvd.iso /media/cdrom 

然后编辑yum配置文件

vi /etc/yum.repos.d/rhel-debuginfo.repo

[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///media/cdrom/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release




你可能感兴趣的:(linux,File)