Centos7配置本地yum源

1.从官方的centos镜像站点(如 http://isoredirect.centos.org/centos/7/isos/x86_64/ )下载centos的iso镜像文件。

2.将镜像文件挂载到 /mnt 上 mount dev/cdrom/mnt

创建本地yum源

cd /etc/yum.repo.d/

创建一个新文件以.repo结尾

在编辑器中输入以下内容

复制代码
[local]
name=Local YUM Repository
baseurl=file:///mnt/
enabled=1
gpgcheck=0

即可创建本地yum源

相关推荐
平行云PVT5 小时前
数字孪生信创云渲染技术解析:从混合信创到全国产化架构
linux·unity·云原生·ue5·图形渲染·webgl·gpu算力
xdscode6 小时前
Linux云服务器安装openclaw,并对接飞书通道
linux·服务器·飞书·openclaw
Percep_gan6 小时前
Linux中安装Redis,很详细
linux·运维·redis
2401_877274247 小时前
从匿名管道到 Master-Slave 进程池:Linux 进程间通信深度实践
linux·服务器·c++
feng_you_ying_li7 小时前
linux之用户的权限详解(4)
linux·运维·服务器
二进制person8 小时前
JavaEE初阶 --网络编程
linux·服务器·网络
Cyber4K8 小时前
【妙招系列】Harbor 镜像私有仓库搭建手册
linux·云原生·容器
Irissgwe9 小时前
进程间通信
linux·服务器·网络·c++·进程间通信
创世宇图10 小时前
阿里云Alibaba Cloud Linux 4 LTS 64位生产环境配置-Nginx
linux·nginx
待续30110 小时前
OpenClaw 安装及使用教程(Windows / macOS / Linux)
linux·windows·macos