如何为脱机安装创建debian包?

时间:2011-07-04 11:29:37

标签: python build debian package ubuntu-10.04

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

我需要应用哪些更改以及在哪个文件中?或者是否有任何其他建议来创建离线安装包?

谢谢!

1 个答案:

答案 0 :(得分:2)

太棒了,就在几秒钟之前,我向同伴堆叠器推荐了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