The configuration of the rhel6 software database is not much different from the previous rhel version. The configuration syntax is basically the same, but some additional parameters are added, the directory structure of the system installation disc has changed. The following is the directory structure of the rhel_6.0-i386-DVD: HighAvailability & lt;-high availability related software packages, such as rhcs related suite & n
The configuration of the rhel6 software database is not much different from the previous rhel version. The configuration syntax is basically the same, but some additional parameters are added, the directory structure of the system installation disc has changed.
The following is the directory structure of the rhel_6.0-i386-DVD:
HighAvailability <-highly available software packages, such as rhcs
Server repodata-> Server/repodata
Packages->../Packages
Server <-conventional software packages, such as mysql, httpd, development tools, and system management tools
Server repodata-> Server/repodata
Packages->../Packages
LoadBalancer <-Load Balancing related software packages, such as lvs and pirihan
Server repodata-> Server/repodata
Packages->../Packages
ResilientStorage
Server repodata-> Server/repodata
Packages->../Packages
Packages <-directory that stores all software Packages
The boot and driver image files required by the images <-rhel installation process. This directory is removed from boot. iso for space reasons. If necessary, download them from RHN.
Isolinux <-files required for Image File boot
Follow these steps to configure the local Yum software Repository:
1. Copy all the data on the CD to a directory in the system to build a software warehouse that is easy to modify and upgrade.
2. Edit the configuration file
# Vim/etc/yum. repos. d/local. repo
[Server]
Name = Server
Baseurl = file: // share/rhel/Server
Enabled = 1
Gpgcheck = 0
[HighAvailability]
Name = HighAvailability
Baseurl = file: // share/rhel/HighAvailability
Enabled = 1
Gpgcheck = 0
[LoadBalancer]
Name = LoadBalancer
Baseurl = file: // share/rhel/LoadBalancer
Enabled = 1
Gpgcheck = 0
[LoadBalancer]
Name = LoadBalancer
Baseurl = file: // share/rhel/LoadBalancer
Enabled = 1
Gpgcheck = 0
If you reinstall another software package after installing the software package for the first time, you may find an error. The error message is as follows:
Error: Cannot retrieve repository metadata (repomd. xml) for repository:
InstallMedia. Please verify its path and try again
In fact, after reading and modifying the software warehouse for the first time, rhel6 will copy the original root directory of the CD, that is, the media that you copied to the software warehouse directory together. copy the repo to/etc/yum. repos. d/, and the file is also the culprit that causes local yum source failure.
Solution:
Delete media. repo from the software Repository
# Rm-f/share/rhel/media. repo
Or Add the following options in/etc/yum. conf:
Skip_if_unavailable = True