1.安装ftp
yum install -y vsftpd
2.准备ftp主目录
mkdir /var/ftp/mysql57/
3.官网下载yum仓库的包
yum install -y mysql157-community-release-e17-11.noarch.rpm
4.仅下载不安装mysql
yum install -y --downloadonly mysql-community-server
5.查找下载的mysql安装包
find /var/cache/yum/x86_64/7/ -iname "*.rpm" -exec cp
6.创建依赖关系
yum provides createrepo
createrepo /var/ftp/mysql57/
7.ftp 启动
systemctl start vsftpd
1.自建yum仓库
vim /etc/yum.repos.d/mysql57.repo
【mysql157】
baseurl=ftp://192.168.126.100/mysql57
gpgcheck=0
enabled=1
1