Saturday, September 7, 2019

installation - How to create package download script with correct dependencies?

In Synaptic it's possible to select a bunch of packages for installation (or reinstallation), then just click FileGenerate package download script to get a set of commands to download the corresponding deb files. This is useful for transferring missing packages to an offline system for installation, and it also resolves dependencies.


Unfortunately, as far as I can tell the process has some drawbacks:



  1. The online system has no way of knowing which of the dependencies are installed on the offline system (unless they're both somehow in sync). In the worst case this means several roundtrips to download all the necessary files.

  2. synaptic is not installed by default on a new system, so I'd have to use two roundtrips if I wanted to generate the package download script on the offline system - Once for the Synaptic deb file, and again with the files downloaded by the generated script.


apt-get download is not an alternative since it doesn't resolve dependencies.


Is there some way to



  1. generate a package download script with the packages available on the Ubuntu live CD, or

  2. transfer the packaging state on the offline machine to the online one and create a package download script with the latest upstream state?


The latter option would be preferred since it would also get the latest versions of each package.

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...