Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I download ubuntu packages from online repos thhrough windows to install them later on an offline ubuntu machine?

this is related to this question: Ubuntu repository download iso

if there are any ready-made iso's for 11.10 that include device drivers, language packs & software packages would be great for ubuntu users without an internet connection.

any ideas?

share|improve this question
    
You'll find some good options on the AskUbuntu Question How can I install software offline?. It has high votes for keryx and a tutorial reference too. – nik Feb 23 '12 at 15:16

For similar needs, I run a small virtual machine in my windows machine. To download packages without installing you can use apt-get download <package_name>. The command will download the package to the directory that you run the command. You can then copy the packages to the host, then a flash drive, lastly to the machine that you use.

I know this may not be the most elegant solution but at least works for me.

Oh, I forgot: If you need dependency checking, you can run apt-get -s install <package_name>, copy the dependency line and just paste to apt-get download command.

Update 2: I looked to the manpage of the apt-get. It has a switch called --download-only. You can pass this to install & apt-get will get all the packages for you but won't install them. You can find your packages in /var/cache/apt/archives. An occasional apt-get clean will delete the files from the directory, so you can get the packages you want easily.

Update 3: To install the packages obtained with method in Update 2, you need to put these packages again in /var/cache/apt/archives in the offline machine. If you want to install packages you got with apt-get download, you can use dpkg -i <package_file>.

share|improve this answer

You can search for and download them right on http://packages.ubuntu.com/

share|improve this answer

While i haven't tested it yet keyrx should allow you to create a manifest of things that need updating, download them on another system, and install them. I'm not sure if it handles packages that arn't already on the system however.

share|improve this answer
    
I assume you mean keryx. Your youtube link takes me to a clip called "Expert Cooking" :-) – nik Feb 23 '12 at 15:21
    
This is what i get for SUing when ill ;p. Fixed, and thanks – Journeyman Geek Feb 23 '12 at 23:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .