rhel6.2之本地yum源配置

[root@localhost~]# mount -o loop /root/rhel6.2_x86_64.iso  /mnt/cdrom

[root@localhost~]# cat /etc/yum.repos.d/rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
baseurl=file:///mnt/cdrom/         ###rhel6.2与rhel5.X有小小的区别(rhel5.X为baseurl=file:///mnt/cdrom/Server)
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

你可能感兴趣的:(操作系统)