[英]How to create debian package for offline installation?
在這里,我想要的是:我想開發我的項目的 debian package 以進行離線安裝。 項目包含一些依賴項,如 python-lxml 等。我已經從具有互聯網連接的不同機器下載了所需的包。 現在在另一台機器上(沒有互聯網連接),我想在執行控制文件之前復制“/var/cache/apt/archive”文件夾(來自 debian package 安裝)中的所有必需包。 所以當控制文件被執行時,它可以從“/var/cache/apt/archive”文件夾安裝依賴包,而不是在互聯網上搜索。
我應該應用哪些更改以及在哪個文件中? 或者對於創建離線安裝 package 還有其他建議嗎?
謝謝!
太棒了,就在幾秒鍾前,我向一個堆垛機伙伴推薦了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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.