標籤:本地yum源搭建
#mkdir /media/cdrom
#mount /dev/cdrom /media/cdrom
. 本地光碟片鏡像
mount -o loop -t iso9600 /mnt/cdrom/your-iso /media/cdrom
.掛在DVD鏡像檔案
#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 (*****此處不是Packages!!!)
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
.設定檔
#yum clean all
#yum list
本地yum源配置完成,可以使用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
問題:
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 24 21:41:07 2016 - 2:35:54 ago
State : Sleeping, pid: 43175
yum安裝鎖定問題
執行命令:rm -rf /var/run/yum.pid 來強行解除鎖定
本文出自 “憨雨” 部落格,請務必保留此出處http://891023.blog.51cto.com/3984699/1745023
Red Hat 6.5 本地 yum源搭建