Red Hat 6.5 local Yum source build

Source: Internet
Author: User
Tags gpg

#mkdir/media/cdrom

#mount/dev/cdrom/media/cdrom

. Local Disc mirroring

Mount-o loop-t Iso9600/mnt/cdrom/your-iso/media/cdrom

. Hanging on DVD image file

#cd/ETC/YUM.REPOS.D

#ls

[[email protected] yum.repos.d]# ls

Rhel-source.repo

#vim Rhel-source.repo

[Rhel-source]

name=red Hat Server

baseurl= File:///media/cdrom/Server (* * * * this is NOT packages!!!)

Enabled=1

Gpgcheck=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release

. configuration file

#yum Clean All

#yum List

The local Yum source configuration is complete and can be installed using Yum.

#rpm-qa | grep Yum

Yum-utils-1.1.30-14.el6.noarch

Yum-plugin-verify-1.1.30-14.el6.noarch

Yum-plugin-aliases-1.1.30-14.el6.noarch

Yum-plugin-versionlock-1.1.30-14.el6.noarch

Packagekit-yum-0.5.8-21.el6.x86_64

Yum-metadata-parser-1.1.2-16.el6.x86_64

Yum-plugin-changelog-1.1.30-14.el6.noarch

Yum-plugin-security-1.1.30-14.el6.noarch

Yum-rhn-plugin-0.9.1-48.el6.noarch

Yum-3.2.29-40.el6.noarch

Yum-plugin-downloadonly-1.1.30-14.el6.noarch

Packagekit-yum-plugin-0.5.8-21.el6.x86_64

Problem:

Another app is currently holding the Yum lock; Waiting for it to exit ...

The other application Is:packagekit

memory:47 M RSS (364 MB VSZ)

started:wed Feb 21:41:07 2016-2:35:54 ago

State:sleeping, pid:43175

Yum Installation Lock Issue

Execute command:rm-rf/var/run/yum.pid to forcibly unlock the lock

This article is from the "Han Yu" blog, please be sure to keep this source http://891023.blog.51cto.com/3984699/1745023

Red Hat 6.5 local Yum source build

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.