《RHEL5下实现本地YUM源的过程.doc》由会员分享,可在线阅读,更多相关《RHEL5下实现本地YUM源的过程.doc(3页珍藏版)》请在金锄头文库上搜索。
1、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/
2、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 Ha
3、t 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-K
4、EY-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
5、: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 测试!成功!