β οΈ TODO: Add configuration for HTTP/HTTPS proxy in APT (/etc/apt/apt.conf.d/)
β οΈ TODO: Add systemd-based proxy configuration for Docker daemon
β οΈ TODO: Add environment variable setup (http_proxy,https_proxy, etc.)
This guide shows how to download a package with all its dependencies on an online machine and install it later on an offline system.
We will:
- Use
apt-rdependsto list all dependencies - Download all required
.debfiles - Transfer them to an offline machine
- Install everything locally
- Update package index
sudo apt update- Install
apt-rdepends
sudo apt install apt-rdepends- Create a working directory
mkdir ~/offline-packages
cd ~/offline-packages- Download package + dependencies
Example for acl:
apt download $(apt-rdepends acl | grep -v "^ ")apt-rdepends aclβ lists all dependencies recursivelygrep -v "^ "β removes indented lines (keeps only package names)apt downloadβ downloads.debfiles without installing
Copy the directory:
~/offline-packages- Navigate to directory
cd ~/offline-packages- Install all packages
sudo dpkg -i *.debIf dpkg reports missing dependencies:
sudo apt install -fNote: This may fail without internet if something was missed. Ensure all dependencies were downloaded.
- Verify architecture:
dpkg --print-architecture