离线下载软件包并安装"/>
ubuntu离线下载软件包并安装
服务器开发通常不能联网,我们需要利用一个能上网的服务器下载依赖包
能联外网的系统需与服务器系统版本一致
1. 离线包下载
sudo apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances 包名 | grep "^\w" | sort -u)
如安装 ssh服务
sudo apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances openssh-server | grep "^\w" | sort -u)
2 离线包安装
将下载的所有文件导入到内网服务器
dpkg -i *.deb
更多推荐
ubuntu离线下载软件包并安装
发布评论