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
阅读(3636) | 评论(0) | 转发(0) |