1.把光盘里的所有文件拷贝到/yum下
2.编辑 /etc/yum.repos.d/rhel-debuginfo.repo
复制代码 代码如下:
[base]
name=Instructor Server Repository
baseurl=file:///yum/Server
gpgcheck=1
# This one is needed for xen packages
[VT]
name=Instructor VT Repository
baseurl=file:///yum/VT
gpgcheck=1
# This one is needed for clustering packages
[Cluster]
name=Instructor Cluster Repository
baseurl=file:///yum/Cluster
gpgcheck=1
# This one is needed for cluster storage (GFS, iSCSI target, etc…) packages
[ClusterStorage]
name=Instructor ClusterStorage Repository
baseurl=file:///yum/ClusterStorage
gpgcheck=1
3. rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
您可能感兴趣的文章:
- centos6.4配置163 yum源的方法
- CentOS 6.2使用yum安装LAMP以及phpMyadmin详解
- centos6利用yum安装php mysql gd的步骤
- CentOS 5.5使用yum来安装LAMP(php运行环境)
- CentOS 5 上安装yum的方法
本文由 华域联盟 原创撰写:华域联盟 » 使用光盘配置本地yum源的方法 yum源配置
转载请保留出处和原文链接:https://www.cnhackhy.com/46588.htm