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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ztguang/article/details/51015887

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


展开阅读全文

没有更多推荐了,返回首页