Linux 6.2 Configuration Yum Local

Source: Internet
Author: User

Yum



1, hanging in the ISO file


[[Email protected]]# Mount/dev/cdrom/media

2, Installation Createrepo

Createrepo is a configuration tool that configures the Yum source to check whether the installation of the Createrepo package is currently installed:

[Email protected]]# rpm-ivh createrepo-0.9.8-4.el6.noarch.rpm

Warning:createrepo-0.9.8-4.el6.noarch.rpm:header V3 rsa/sha256 Signature, key Idec551f03:nokey

Error:faileddependencies:

DELTARPM is needed by Createrepo-0.9.8-4.el6.noarch

PYTHON-DELTARPM is needed by Createrepo-0.9.8-4.el6.noarch

[Email protected]]# rpm-ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

Warning:deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm:header V3 rsa/sha256 signature,key ID Ec551f03:nokey

Preparing ... ########################################### [100%]

1:deltarpm ########################################### [100%]

[Email protected]]# rpm-ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

Warning:python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm:header V3 rsa/sha256signature, key ID Ec551f03:nokey

Preparing ... ########################################### [100%]

1:python-deltarpm ########################################### [100%]

[Email protected]]# rpm-ivh createrepo-0.9.8-4.el6.noarch.rpm

Warning:createrepo-0.9.8-4.el6.noarch.rpm:header V3 rsa/sha256 Signature, key Idec551f03:nokey

Preparing ... ########################################### [100%]

1:createrepo ########################################### [100%]

[email protected] yum] #cp-R/media/*/mnt

3, create the Yumrepository xml-rpm-metadata

Createrepo -g/mnt/server/repodata/repomd.xml/mnt/server/

Createrepo -g/mnt/highavailability/repodata/repomd.xml/mnt/highavailability/

Createrepo -g/mnt/loadbalancer/repodata/repomd.xml/mnt/loadbalancer/

Createrepo -g/mnt/resilientstorage/repodata/repomd.xml/mnt/resilientstorage/

4. Create a repo file for the local yum client

[[email protected] mnt] #cd/etc/yum.repos.d/

[Email protected]]# ll

Total 0

[Email protected]]# VI Local.repo

[Highavailability]

Name=highavailability

Baseurl=file:/mnt/highavailability

Enabled=1

Gpgcheck=0

Gpgkey=file:/mnt/rpm-gpg-key-oracle

[LoadBalancer]

Name= LoadBalance

Baseurl=file:/mnt/loadbalancer

Enabled=1

Gpgcheck=0

Gpgkey=file:/mnt/rpm-gpg-key-oracle

[Resilientstorage]

Name=resilientstorage

Baseurl=file:/mnt/resilientstorage

Enabled=1

Gpgcheck=0

Gpgkey=file:/mnt/rpm-gpg-key-oracle

[Server]

Name=server

Baseurl=file:/mnt/server

Gpgcheck=0

Enabled=1

Gpgkey=file:/mnt/rpm-gpg-key-oracle



Yum Local wine configuration is complete after saving, can be tested with yum install GCC

Didn ' t install Anykeys

Linux 6.2 Configuration Yum Local

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.