首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >apt-离线只安装特定的软件包,不升级/更新

apt-离线只安装特定的软件包,不升级/更新
EN

Ask Ubuntu用户
提问于 2016-03-23 15:21:08
回答 1查看 771关注 0票数 0

apt-offline似乎是在非联网计算机上安装软件包的一个很好的工具。

但是,我遇到了一个问题,它不只是安装我指定的包,而是执行update/upgrade。有没有办法强迫它只安装所选的软件包(以及它们的依赖项)?

EN

回答 1

Ask Ubuntu用户

发布于 2017-01-10 10:52:27

根据apt离线的手册页,您必须遵循以下顺序:

代码语言:javascript
复制
Sequence  1:  The following set of commands, when run in sequence, will
   update a disconnected machine.

          apt-offline set update.sig --update

          (Generate the required data needed to update the  APT  database.
          Should be run on the disconnected machine)

          apt-offline get update.sig --bundle update.zip

          (Download  the  required data needed to update the APT database.
          Should be run on a machine with internet connectivity)

          apt-offline install update.zip

          (Installs the data needed to update the APT database. Should  be
          run on the disconnected machine)


Sequence  2: With successful completion of Sequence 1, the APT database
   on the disconnected machine will be up-to-date. Now, the following  set
   of commands, when run in sequence, will upgrade a disconnected machine.

          apt-offline set upgrade.sig --upgrade

          (Genereate  the  required  data needed to upgrade the upgradable
          packages. Should be run on the disconnected machine)

          apt-offline get upgrade.sig --bundle upgrade.zip

          (Download the required data needed  to  upgrade  the  upgradable
          packages. Should be run on a machine with internet connectivity)

          apt-offline install upgrade.zip

          (Installs  the  data  needed to upgrade the upgradable packages.
          Should be run on the disconnected machine)

After completion of
          Sequence 1 and Sequence 2  in  order,  further  running  apt-get
          upgrade will result in 0 bytes of additional download.
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/749369

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档