1. 先在一台能上外网的CentOS7上下载安装包
[root@server101 root]# yum -y install yum-utils [root@server101 root]# mkdir dep [root@server101 root]# cd dep [root@server101 dep]# repotrack --download_path=/root/dep vim-minimal vim-common vim-enhanced
2.再在不能上外网的服务器上安装依赖包
[root@server102 root]# scp -r [email protected]:/root/dep ./ [root@server102 root]# cd dep [root@server102 dep]# yum install ./*标签:dep,上外,server101,CentOS7,server102,一台,root From: https://www.cnblogs.com/gispathfinder/p/16965473.html