Create a local yum source

Source: Internet
Author: User
First, make sure that the software package yum-3.2.19-18.el5yum-security-1.1.16-13.el5yum-updatesd-0.9-2.el5yum-rhn-plugin-0.5.3-30.el5yum-metadata-parser-1.1.2-2.el5 is installed on your system in the/etc/yum. repo

First, make sure that the software package is installed on your system.
Yum-3.2.19-18.el5
Yum-security-1.1.16-13.el5
Yum-updatesd-0.9-2.el5
Yum-rhn-plugin-0.5.3-30.el5
Yum-metadata-parser-1.1.2-2.el5
A rhel-debuginfo.repo file is generated under/etc/yum. repos. d/after installation
Then use the CD or image
Mount to system
# Mkdir/mnt/cdrom
# Mount/dev/cdrom/mnt/cdrom
Then edit a configuration file
# Vim/etc/yum. repos. d/local. repo add the following content:
[Base]
Name = server
Baseurl = file: // mnt/cdrom/Server
So OK !!
 
 
If you install software packages related to cluster, clusterstorage, or xen, you only need to add the following content:

[VT]
Name = VT Local Sources
Baseurl = file: // mnt/cdrom/VT
Enable = 1
Gpcheck = 1
Gpgkey = file: // mnt/cdrom/RPM-GPG-KEY-redhat-release

[Cluster]
Name = Cluster Local Sources
Baseurl = file: // mnt/cdrom/Cluster
Enable = 1
Gpcheck = 1
Gpgkey = file: // mnt/cdrom/RPM-GPG-KEY-redhat-release

[CS]
Name = ClusterStorage Local Sources
Baseurl = file: // mnt/cdrom/ClusterStorage
Enable = 1
Gpcheck = 1
Gpgkey = file: // mnt/cdrom/RPM-GPG-KEY-redhat-release

Of course, the preceding three sections can be used separately in combination with the [base] section. for example, if you only need to install the Xen rpm Package, you only need to add [VT] segments and [base] segments.

In this way, you can directly use the software later.
# Yum install PACKETS!
This article is from the "IT dream-Qi-sharing" blog

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.