ubuntu离线下载软件包并安装

编程入门 行业动态 更新时间:2024-10-27 20:30:10

ubuntu<a href=https://www.elefans.com/category/jswz/34/1767604.html style=离线下载软件包并安装"/>

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离线下载软件包并安装

本文发布于:2024-03-23 15:42:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1739906.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:离线   软件包   并安装   ubuntu

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!