标签:file
1.mount /dev/cdrom /mnt/cdrom
2. cd /etc/yum.repos.d
3. vi server.repo并添加下列内容:
[base]
name=server
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
4.yum makecache
本文出自 “kobebryant” 博客,谢绝转载!
标签:file
原文地址:http://beautifual.blog.51cto.com/3678509/1697226