mount /dev/cdrom /mnt
cd /etc/yum.repos.d
touch my.repo
vi my.repo
添加以下内容
[base]
name=linux6
baseurl=file:///mnt
enabled=1
gpgcheck=0
本文介绍如何通过挂载光驱到指定目录并创建yum源配置文件, 实现设置Linux系统的本地yum仓库, 方便在无网络环境下进行软件包的安装与管理。
mount /dev/cdrom /mnt
cd /etc/yum.repos.d
touch my.repo
vi my.repo
添加以下内容
[base]
name=linux6
baseurl=file:///mnt
enabled=1
gpgcheck=0

被折叠的 条评论
为什么被折叠?