Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I use apt-get to install a package on an offline computer? With a separate (connected) computer, I can use apt-get --download [package] to pull the package I'm interested in but this fails to grab the dependencies. Can I copy a list of the already installed packages from the offline computer to the online one so the dependencies can be calculated with apt-get?

If I want to install packages and update the computer - is there a better way to do than what's described above?

share|improve this question
    
Can you not hook it up to the internet to update it? –  Simon Sheehan Aug 16 '11 at 20:15
add comment

1 Answer

up vote 3 down vote accepted

You can use tools like apt-cacher, apt-mirror or apt-offline (which sounds like it fits your requirements best).

apt-offline -

apt-offline is an Offline APT Package Manager

apt-offline can fully update and upgrade an APT based distribution without connecting to the network, all of it transparent to apt

apt-offline can be used to generate a signature on a machine (with no network). This signature contains all download information required for the apt database system. This signature file can be used on another machine connected to the internet (which need not be a Debian box and can even be running windows) to download the updates. The downloaded data will contain all updates in a format understood by apt and this data can be used by apt-offline to update the non-networked machine.

share|improve this answer
    
This works perfectly - thanks for the heads up on the app and the alternatives! –  Hooked Aug 17 '11 at 4:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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