(OK) CentOS7—用本地光盘(ISO文件)制作yum源


1. # mount -o loop /opt/CentOS-7-x86_64-Everything-1503-01.iso /mnt/iso


2. # gedit /etc/yum.repos.d/CentOS7-ISO.repo        内容如下:

# -----------------------------------------------------------------------------
# CentOS7-ISO.repo
#
[CentOS7-ISO]
name=CentOS-$releasever - CentOS7-ISO
baseurl=file:///mnt/iso
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
# -----------------------------------------------------------------------------


3. # yum install mysql


原文地址:https://www.cnblogs.com/ztguang/p/12649088.html