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