Redhat Local configuration of 6.2 yum

Source: Internet
Author: User
Tags gpg

First introduce the ISO file of my Redhat 6.2 on the SDB5.

So I created two directories:

Mkdir/tmp/file1

Mkdir/tmp/file2

Mount the ISO redhat 6.2 on the SDB5 to/tmp/file1:

Mount/dev/sdb5/tmp/file1

The ISO for Redhat 6.2 cannot be read at this time and still requires further mounting:

Mount-o--loop/tmp/file1/rhel-server-6.2-x86_64-dvd.iso/tmp/file2

At this point, the ISO file for Redhat 6.2 is available.

To/tmp/file2/packages, install three RPM packages in the order of installation:

Python-kerberos-1.1-6.2.el6.x86_64

Yum-3.2.29-22.el6.noarch
Yum-metadata-parser-1.1.2-16.el6.x86_64

After installing three packages, go to/etc/yum.repos.d/. Save a copy of the configuration file (Backup).

CP Rhel-source.repo Rhel-source.repo.bak (there is also a file Redhat.repo is not a configuration file because the inside is empty)

Place the ISO redhat 6.2 on the file system.

Mkdir/home/redhatiso

Cp-rp/tmp/file2/home/redhatiso

Configured in the configuration file.

Vim/etc/yum.repos.d/rhel-source.repo:

[Rhel-source] # An identifier that can be defined by itself
name=red Hat Enterprise Linux $releasever-$basearch-source #一个名称而已, can be customized.
baseurl=file:///home/redhatiso/# The path where the source is installed locally. Where the installation package is made locally.
The enabled=1 # option indicates the state of the source, 1 is on, 0 means disabled
The gpgcheck=1 # option indicates a GPG checksum of the source, 0 for no check, and 1 for check
Gpgkey=file:///home/redhatiso/rpm-gpg-key-redhat-release # The path to the GPG validation tool. Should be consistent with the local source path.

To perform a Yum trial:

[email protected] packages]# Yum install zsh

................................................
======================================================================================
Package Arch Version Repository Size
======================================================================================
Installing:
Zsh x86_64 4.3.10-4.1.el6 Rhel-source 2.1 M
Total Download size:2.1 M
Installed size:4.8 M
Warning:rpmdb altered outside of Yum.
* * Found 3 pre-existing Rpmdb problem (s), ' yum check ' output follows:
Packagekit-0.5.8-19.el6.x86_64 has missing requires of Packagekit-yum = (' 0 ', ' 0.5.8 ', ' 19.el6 ')
Packagekit-0.5.8-19.el6.x86_64 has missing requires of Packagekit-yum-plugin = (' 0 ', ' 0.5.8 ', ' 19.el6 ')
Rhn-check-1.0.0-73.el6.noarch has missing requires of Yum-rhn-plugin >= (' 0 ', ' 0.9.1 ', ' 35 ')
Installed:
Zsh.x86_64 0:4.3.10-4.1.el6

complete!
[Email protected] packages]#

Redhat Local configuration of 6.2 yum

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.