如何创建 debian 包以供离线安装?

发布于 2024-11-18 03:35:51 字数 294 浏览 4 评论 0原文

在这里,我想要什么: 我想为我的项目开发debian包以供离线安装。 项目包含一些依赖项,如 python-lxml 等。我已经从具有互联网连接的不同机器下载了所需的包。现在在另一台机器(没有互联网连接)上,我想在执行控制文件之前将所有必需的包复制到“/var/cache/apt/archive”文件夹(来自 debian 包安装)中。因此,当执行控制文件时,它可以从“/var/cache/apt/archive”文件夹安装依赖包,而不是在互联网上搜索。

我应该应用哪些更改以及在哪个文件中?或者对于创建离线安装包还有其他建议吗?

谢谢!

Here, what I would like :
I want to develop debian package of my project for offline installation.
Project contains some dependency like python-lxml and etc. I have downloaded required packages from the different machine which have internet connectivity. now on another machine (which does not have internet connectivity), I would like to copy all required packages in "/var/cache/apt/archive" folder (from debian package installation) before the execution of control file. so when control file would be executed it could install dependent packages from the "/var/cache/apt/archive" folder instead of searching on internet.

What changes should I have to apply and In which file? or Is there any other suggestion for creating offline installation package?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

败给现实 2024-11-25 03:35:51

太棒了,就在几秒钟前,我向一位堆垛机同事推荐了 apt-offline:

Description: offline apt package manager
 apt-offline is an Offline APT Package Manager
 .
 apt-offline can fully update and upgrade an APT based distribution without
 connecting to the network, all of it transparent to apt
 .
 apt-offline can be used to generate a signature on a machine (with no network).
 This signature contains all download information required for the apt database
 system. This signature file can be used on another machine connected to the
 internet (which need not be a Debian box and can even be running windows) to
 download the updates.
 The downloaded data will contain all updates in a format understood by apt and
 this data can be used by apt-offline to update the non-networked machine.
 .
 apt-offline can also fetch bug reports and make them available offline

Amazing, just a few seconds ago I recommended apt-offline to a fellow stacker:

Description: offline apt package manager
 apt-offline is an Offline APT Package Manager
 .
 apt-offline can fully update and upgrade an APT based distribution without
 connecting to the network, all of it transparent to apt
 .
 apt-offline can be used to generate a signature on a machine (with no network).
 This signature contains all download information required for the apt database
 system. This signature file can be used on another machine connected to the
 internet (which need not be a Debian box and can even be running windows) to
 download the updates.
 The downloaded data will contain all updates in a format understood by apt and
 this data can be used by apt-offline to update the non-networked machine.
 .
 apt-offline can also fetch bug reports and make them available offline
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文