Friday, March 25, 2011

Debian / Ubuntu Offline Update

On Online Machine (A):
Copy the /var/cache/apt/archives/ and /var/lib/apt/lists/ directories to the transfer drive (e.g. USB Flash drive).
Also get /etc/apt/sources.list and /etc/apt/sources.list.d/

On Offline Machine (B):
Copy files from the transfer drive to the same location on the Offline Machine.
Force APT to read the source files via 'sudo apt-cache gencaches'. This will allow APT to read the /var/lib/apt/lists/ and know what packages are available.


Now you can 'sudo apt-get install ' to install the available packages.

No comments: