Red Hat Enterprise Linux 配置本地yum源

 修改 

 vi  /etc/yum.repos.d/rhel-debuginfo.repo
 
替换为以下内容!
 
file:///yum/Cluster    (yum 是本地 加载 光盘后的目录)
---------------------------------------------------------------------------------------
 [Cluster]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///yum/Cluster/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///yum/ClusterStorage
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Server]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///yum/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releasea
 
[VT]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///yum/VT
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releasea
------------------------------------------------------------------------------
 
 
使用yum 出现  warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186  错误
 
使用  rpm --import /etc/pki/rpm-gpg/RPM*   就可以解决!!!

你可能感兴趣的:(yum,本地源)