Apt-offline claims to be a utility that allows you to install packages on Debian without internet connection. It can be downloaded from the git repository.
As with many free software, the problem is that it's undocumented and that you have build it yourself. In the git repository I've linked to, there's a information file INSTALL:

# Execute the file using the python interpreter
# Assuming python.exe is in your path

# To build
C:\> python setup.py build

# To install
C:\> python setup.py install

I've ran build and then install. I could've seen some parse errors spit out by Python. I hope these don't matter. Anyway, I just ended up with a few more folders and few more files without extension (why do some people omit extensions all the time?).

So my question here is just how to build and install the utility properly - given it's possible. (and this question suggests it might be possible)

  • Why do you think this would be useful on Windows? what are you doing? why do some people omit extensions all the time? - Because they are not required or needed on Linux. – Zoredache Jun 19 '14 at 23:12
  • Neither they are required on windows. But it's nice to know what kind of a file it is before opening it. Why shouldn't I be building an application that claims to run under windows? – Tomáš Zato - Reinstate Monica Jun 19 '14 at 23:42
  • ok, so you think you installed it. is one of the files named apt-offline or apt-offline-gui? if everything is working, you should be able to cd into that directory, and execute either with python apt-offline-gui. or you can copy it to your path as your linked thread suggested. – Frank Thomas Jun 20 '14 at 2:08

I've just installed it on a Windows XP machine as follows:-

Install Python 2.7. Make sure you choose the correct architecture (32/64 bit). Select the option to add python.exe to your path as it will make things easier later.

Install PyQt4. Again, make sure you choose the correct architecture for your Windows.

Download apt-offline. Extract it to the C:\ drive. The folder will be called apt-offline-master - rename it to apt-offline to save on your typing later.

Open the Windows terminal. Type the following:-

 cd c:\apt-offline
 python setup.py build
 python setup.py install
 python apt-offline-gui

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.