如何在不安装的情况下从 apt-get 下载软件包? [英] How do I download a package from apt-get without installing it?

查看:213
本文介绍了如何在不安装的情况下从 apt-get 下载软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台没有 NIC 的计算机,我想通过以下方式在其中安装一些程序USB 存储器,但是如何在不安装的情况下从 apt-get 下载程序?

I have a computer without a NIC, and I want to install some programs in it via USB memory, but how can I download a program from apt-get without installing it?

推荐答案

至少有这些 apt-get 扩展包可以提供帮助:

There are a least these apt-get extension packages that can help:

apt-offline - offline apt package manager
apt-zip - Update a non-networked computer using apt and removable media

这特别适用于想要下载您可以访问网络但想安装在您没有网络访问的另一台机器上的情况.

This is specifically for the case of wanting to download where you have network access but to install on another machine where you do not.

否则,apt-get--download-only 选项是你的朋友:

Otherwise, the --download-only option to apt-get is your friend:

 -d, --download-only
     Download only; package files are only retrieved, not unpacked or installed.
     Configuration Item: APT::Get::Download-Only.

这篇关于如何在不安装的情况下从 apt-get 下载软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆