[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
阅读(1856) | 评论(0) | 转发(0) |