cd /etc/yum.repos.d/
拷贝rhel-debuginfo.repo 做备份
备份文件名为yum.repo
修改里面内容
挂载光驱时候要挂载到/mnt下,如果是其他地方就自己修改下位置
#RHEL5.5
[server]
name=server
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
#RHEL6
[server]
name=server
baseurl=file:///mnt/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
#CentOS5.5 这个系统可以不改
[server]
name=server
baseurl=file:///mnt/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
阅读(587) | 评论(0) | 转发(0) |