资源预览内容
第1页 / 共3页
第2页 / 共3页
第3页 / 共3页
亲,该文档总共3页全部预览完了,如果喜欢就下载吧!
资源描述
RHEL5下实现本地YUM源的过程linux教程详解:RHEL5下实现本地YUM源的过程 系统平台:Red Hat Enterprise Linux Server release 5 (Tikanga)方法一步骤:1、 将DVD光盘挂载到/media/cdrom中;2、 拷贝/media/cdrom中的所有文件到/media/yum1;3、 /etc/yum.repos.d/rhel-debuginfo.repo :Clustername=Red Hat Enterprise Linux $releasever - $basearch - Clusterbaseurl=file:/media/yum1/Clusterenabled=1gpgcheck=1gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseClusterStoragename=Red Hat Enterprise Linux $releasever - $basearch - ClusterStoragebaseurl=file:/media/yum1/ClusterStorageenabled=1gpgcheck=1gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseServername=Red Hat Enterprise Linux $releasever - $basearch - Serverbaseurl=file:/media/yum1/Serverenabled=1gpgcheck=1gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseVTname=Red Hat Enterprise Linux $releasever - $basearch - VTbaseurl=file:/media/yum1/VTenabled=1gpgcheck=1gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release4、/usr/lib/python2.4/site-packages/yum/yumRepo.py第411行:remote = url + / + relative改为:remote = “/media/yum1/Server” + / + relative5、yum clean all6、yum install iptraf 测试!成功!方法二步骤:1、将DVD光盘挂载到/media/cdrom中;2、拷贝/media/cdrom/Server中的所有文件到/media/yum2;3、/etc/yum.repos.d/rhel-debuginfo.repo :Servername=Red Hat Enterprise Linux $releasever - $basearch - Serverbaseurl=file:/media/yum2enabled=1gpgcheck=1gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseServername=Red Hat Enterprise Linux $releasever - $basearch - Serverbaseurl=file:/media/yum2enabled=1gpgcheck=0这样修改也是可以的。Servername=Red Hat Enterprise Linux $releasever - $basearch - Serverbaseurl=file:/media/yum2gpgcheck=1这样修改也是可以的。4、/usr/lib/python2.4/site-packages/yum/yumRepo.py第411行:remote = url + / + relative改为:remote = “/media/yum2” + / + relative5、yum clean all6、yum install iptraf 测试!成功!
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号