JP's Laboratory

Posts / Code / Photos / Videos / Contact

Installing Debian packages on a machine without Internet access

Written: 20130613

Installing Debian packages on a machine without Internet access

Lets image that you have a machine running Debian or similar that for some reason does not or should not have access to the Internet. And now you want to apt-get some new software. Then with the help of apt-offline, and a Debian based computer with Internet access this can be done quite easily.

First you'll need to get apt-offline on to the offline computer. It is probably easiest to download the .tar.gz file here and do a python setup.py build and then a python setup.py install. Then it should be ready to use on the offline computer.

I wanted to install python's matplotlib when I encountered this problem, so I'll just use it as an example:

  1. On offline computer: apt-offline set /tmp/apt-offline-matplotlib.sig --install-packages python-matplotlib
  2. On online computer: apt-offline get /tmp/apt-offline-matplotlib.sig --bundle /tmp/apt-offline-matplotlib.zip --threads 5
  3. On offline computer: apt-offline install /tmp/apt-offline-matplotlib.zip
  4. On offline computer: apt-get install python-matplotlib

This walktrough was based on this tutorial: http://www.debian-administration.org/article/Offline_Package_Management_for_APT

comments powered by Disqus