Explanation: Implementation of local YUM source in RHEL5

Source: Internet
Author: User
Article Title: Detailed explanation: Implementation of local YUM source in RHEL5. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic classification system platforms: Red Hat Enterprise Linux Server release 5 (Tikanga)
 
Step 1:
 
1. Mount the DVD disc to/media/cdrom;
 
2. Copy all files in/media/cdrom to/media/yum1;
 
3,/etc/yum. repos. d/rhel-debuginfo.repo:
 
[Cluster]
 
Name = Red Hat Enterprise Linux $ releasever-$ basearch-Cluster
 
Baseurl = file: // media/yum1/Cluster
 
Enabled = 1
 
Gpgcheck = 1
 
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
 
[ClusterStorage]
 
Name = Red Hat Enterprise Linux $ releasever-$ basearch-ClusterStorage
 
Baseurl = file: // media/yum1/ClusterStorage
 
Enabled = 1
 
Gpgcheck = 1
 
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
 
[Server]
 
Name = Red Hat Enterprise Linux $ releasever-$ basearch-Server
 
Baseurl = file: // media/yum1/Server
 
Enabled = 1
 
Gpgcheck = 1
 
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
 
[VT]
 
Name = Red Hat Enterprise Linux $ releasever-$ basearch-VT
 
Baseurl = file: // media/yum1/VT
 
Enabled = 1
 
Gpgcheck = 1
 
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
 
4./usr/lib/python2.4/site-packages/yum/yumRepo. py lines 411st:
 
Remote = url + '/' + relative
 
Changed:
 
Remote = "/media/yum1/Server" + '/' + relative
 
5. yum clean all
 
6. yum install iptraf test! Successful !!!
 
Step 2:
 
1. Mount the DVD disc to/media/cdrom;
 
2. Copy all files in/media/cdrom/Server to/media/yum2;
 
3,/etc/yum. repos. d/rhel-debuginfo.repo:
 
[Server]
 
Name = Red Hat Enterprise Linux $ releasever-$ basearch-Server
 
Baseurl = file: // media/yum2
 
Enabled = 1
 
Gpgcheck = 1
 
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
 
[Server]
 
Name = Red Hat Enterprise Linux $ releasever-$ basearch-Server
 
Baseurl = file: // media/yum2
 
Enabled = 1
 
Gpgcheck = 0
 
This modification is also possible.
 
[Server]
 
Name = Red Hat Enterprise Linux $ releasever-$ basearch-Server
 
Baseurl = file: // media/yum2
 
Gpgcheck = 1
 
This modification is also possible.
 
4./usr/lib/python2.4/site-packages/yum/yumRepo. py lines 411st:
 
Remote = url + '/' + relative
 
Changed:
 
Remote = "/media/yum2" + '/' + relative
 
5. yum clean all
 
6. yum install iptraf test! Successful !!!
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.