2011-07-04 42 views
3

ここで、私は何を望みますか: オフラインインストールのために私のプロジェクトのdebianパッケージを開発したいと思います。 プロジェクトにpython-lxmlなどの依存関係が含まれています。インターネットに接続されている別のマシンから必要なパッケージをダウンロードしました。 (インターネットに接続されていない)別のマシンでは、制御ファイルの実行前に必要なすべてのパッケージを "/ var/cache/apt/archive"フォルダ(debianパッケージインストールから)にコピーしたいと思います。制御ファイルが実行されると、インターネット上で検索するのではなく、 "/ var/cache/apt/archive"フォルダから依存パッケージをインストールすることができます。オフラインインストール用のdebianパッケージの作成方法は?

どのような変更を適用する必要がありますか、どのファイルですか?またはオフラインインストールパッケージを作成するための提案はありますか?

ありがとうございます!

答えて

2

アメージング、ほんの数秒前、私は仲間のスタッカへapt-offlineを推奨:// manページ:のapt-オフラインについて知っていい

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 
+0

おかげで、私は、[リンク](HTTPを読みました。 ubuntu.com/manpages/lucid/man8/apt-offline.8.html)詳細については、私はまだ混乱しています。私はすべてのプロセスをインストール時にdebianパッケージから実行する必要があるので、debianの作成にどのように使用できますか? 。 – Yajushi

+0

ああ、それはまったく別の目標です。私の新しいインストールでは、私は通常、カーネル、シェル、 'apt-get'だけが必要なので、私は見つけることができる最小の"ネットワークインストールディスク "を使用するので、' apt-get install i3 vim openssh-サーバーirssi firefox ... 'と私が必要とする他のプログラム。同じことをすることもできますし、['chef'](http://www.opscode.com/chef/)、[' puppet'](http://www.puppetlabs.com/)、[ FAI](http://wiki.debian.org/FAI)を参照してください。 – sarnold

関連する問題