An apt download on your online computer can leave out dependencies needed by the offline machine.
ExplanationUpdated
On this page
Running apt-get install --download-only jq downloads what the computer running the command
needs. It skips dependencies that are already installed there.
Your offline machine may not have those dependencies. Copying the downloads across can then
leave you with an installation that fails.
Use the offline machine’s package list
Debark saves the offline machine’s installed packages and apt settings in a snapshot. On the
online computer, it gives that information to apt in a temporary working directory.
apt can then work out what the offline machine is missing. The online computer’s installed
packages don’t affect the result.
In this example, the online computer already has one of the libraries that jq needs.
Using the target’s snapshot includes that library in the download.
Check the bundle before transferring it
During a build, Debark also simulates an installation using the finished bundle as the only
package source. This checks that apt can satisfy the request without downloading more files.
The check uses the snapshot. If the offline machine changes, take a new snapshot before
building its next bundle.