使用光盘配置本地yum源的方法 yum源配置
程序员文章站
2023-11-23 16:12:40
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
上一篇: linux操作系统安装sql developer步骤
下一篇: linux挂载新硬盘过程分享