[root@test ~]#mkdir /mnt/iso
[root@test home]
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
[root@test ~]#
mount -o loop -t iso9660 /mnt/hgfs/linux/rhel-server-6.3-x86_64-dvd.iso /mnt/iso/
[root@test home]#
vi /etc/yum.repos.d/rhel-source.repo
加入
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/iso/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
保存退出
[root@test home]#
yum clean all
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Cleaning repos: rhel-debuginfo
Cleaning up Everything
阅读(897) | 评论(0) | 转发(0) |