使用光盘配置本地yum源的方法 yum源配置
程序员文章站
2022-06-20 19:38:47
1.把光盘里的所有文件拷贝到/yum下
2.编辑 /etc/yum.repos.d/rhel-debuginfo.repo复制代码 代码如下:[base]name=ins...
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
下一篇: 懒人做法:茼蒿拌饭,营养又美味