! /bin/bash
echo ‘[cdrom]‘ > /etc/yum.repos.d/cdrom.repo
echo ‘name=cdrom‘ >> /etc/yum.repos.d/cdrom.repo
echo ‘baseurl=file:///mnt‘ >> /etc/yum.repos.d/cdrom.repo
echo ‘enable=1‘ >> /etc/yum.repos.d/cdrom.repo
echo ‘gpgcheck=0‘ >> /etc/yum.repos.d/cdrom.repo
mount /dev/cdrom /mnt
yum list
echo ‘Done!‘
相关文章
- 08-09挂载光盘(本地源)
- 08-09配置本地yum源
- 08-09Cent OS 7 本地yum源配置与安装
- 08-09yum本地源仓库安装报错 被锁定如何解决?
- 08-09centos搭建本地yum源
- 08-09rhel 5.8 创建本地yum 源
- 08-09redhat yum ISO 本地源
- 08-09本地yum源 配置方法二则
- 08-09vsftpd环境下的创建本地yum源镜像
- 08-09自建yum仓库,分别为网络源和本地源