Back to Silas S. Brown's home page
Offline package installation for Debian-based GNU/Linux distributionsDebian, and distributions derived from it (Ubuntu, Mint, etc etc etc) use APT, which generally assumes an Internet connection. When adding a custom set of packages to a machine without an Internet connection, it can be the case that:
- The logistics require you to complete the job in one visit (no trips back to a connected machine to pick up a file that you didn't realise you needed),
- Mobile Internet in the area is too slow and/or unreliable,
- You might not know in advance which packages are already installed on the machine,
- It's not feasible to carry the complete distribution (in its newest form) in a format readable by that machine,
- It's even possible that some or all of the machine's package management infrastructure has been removed to save disk space, on the assumption that no more package management would ever have to be done.
debfiles if the other machine's package manager is known to be working.
deb approach is likely best for
tetex (and software that depends on it such as some versions of
lilypond), as the maintenance this performs at installation time is not usually reflected in its file lists; you might get errors like can't find the format file if you try to run it without a proper installation. There might be other packages like this too.
If you know for sure that certain versions of certain files will be available (because it will be a fresh installation, or because you've collected the data on your last visit), a list of these files and their timestamps can be provided so that the script will omit them; you can obtain such a list by entering find /[belorsuv]* -type f -print0 | xargs -0 ls --full-time > existing-files on the target machine (or on a local non-network installed copy of the fresh installation you plan).
If the machine will later be connected to the Internet in your absence, it might be easier to install some kind of remote administration. Perhaps the simplest way to do this (which does not require setting up SSH servers, open ports or persistent connections) is to set root's crontab to fetch commands from an HTTPS server you have an account on, e.g. echo "@reboot wget -q -O - https://example.org
Usual disclaimers apply (I hope the above is useful, but it's used at your own risk).
All material © Silas S. Brown unless otherwise stated.
Debian is a trademark owned by Software in the Public Interest, Inc.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Python is a trademark of the Python Software Foundation.
Any other trademarks I mentioned without realising are trademarks of their respective holders.