(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


posted @ 2016-02-01 00:00  张同光  阅读(72)  评论(0编辑  收藏  举报