1. 程式人生 > >(OK) CentOS7—用本地光碟(ISO檔案)製作yum源

(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