#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