RHEL6 local source configuration and Problems

Source: Internet
Author: User
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

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.