Centos7.6 Yum 配置本地源

发布时间:2024-12-12 07:36

战略资源分配,优化资源配置 #生活技巧# #领导力技巧# #战略思维训练#

最新推荐文章于 2024-10-31 16:37:12 发布

黄继生 jisen 于 2020-03-12 22:20:44 发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

挂载光驱 

mount -t auto /dev/cdrom /mnt

配置本地源

[root@gbasempp1 yum.repos.d]# cat CentOS-Media.repo 
# CentOS-Media.repo
#
#  This repo can be used with mounted DVD media, verify the mount point for
#  CentOS-7.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c7-media [command]
#  
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c7-media [command]

[c7-media]
name=CentOS-$releasever - Media
baseurl=file:///mnt/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[root@gbasempp1 yum.repos.d]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: c7-media
[root@gbasempp1 yum.repos.d]# yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
c7-media                                                 | 3.6 kB     00:00     
(1/4): c7-media/group_gz                                   | 166 kB   00:00     
(2/4): c7-media/filelists_db                               | 3.2 MB   00:00     
(3/4): c7-media/primary_db                                 | 3.1 MB   00:00     
(4/4): c7-media/other_db                                   | 1.3 MB   00:00     
Metadata Cache Created

网址:Centos7.6 Yum 配置本地源 https://www.yuejiaxmz.com/news/view/450603

相关内容

yum安装php Requires: libzip5(x86
yum无法使用解决方法(比较全)
Postfix 邮件发送功能配置
100个日常实用脚本
利用开源软件搭建JAVA工程CI&CD自动化工具链(K8S)
【好玩的开源项目】Docker下部署HomeAssistant智能家居系统
自动化运维工具——SaltStack(一)
源码编译安装LAMP
【Discuz】在linux中搭建 Discuz 论坛(LAMP=linux+Apache+mysql+PHP)
consider using the replace, lineinfile

随便看看