Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I'm setting up an offline Ubuntu Repo and I need to download the Ubuntu repo using a windows machine. I have access to WGET.exe . What is the command to do this?

Thanks in Advance.

share|improve this question
I don't know how wget works in widnows but in Ubuntu or Linux, you put it like this wget andtheURLofthefile, i suppose if Wget for windows allows you to put the URL of the files you want to download, well do that. – Uri Herrera Dec 6 '11 at 17:30
understood, I guess the part that i'm not sure of is what do I want to download (URL) for 10.04 supporting an i386 host. – Lexicon Dec 6 '11 at 17:42
Type wget --help or man wget for information about wget. The Ubuntu repository is huge, it contains over 55000 packages. You can use the --recursive to download all files in all directories. – Anonymous Dec 6 '11 at 17:42
@Anonymous he is Using Wget for Windows not in Ubuntu. Commands won't work. – Uri Herrera Dec 6 '11 at 17:44
The commands are the same. help does work. I waned to know is what the address of the repository would be to download everything needed to support 10.04 i386 platform offline. for instance what would the command using wget in linux to do this? I can modify it to work in windows. – Lexicon Dec 6 '11 at 17:50
up vote 5 down vote accepted

First you should find a fast mirror geographically near you, example (Sweden) or (Norway), just put your country code instead of se or no so you can download fast.

Then wget --recursive

When you use the --recursive option wget fetches all files and everything in all the subdirectories.

However, the Ubuntu package repository is HUGE, so sure you have enough disk space.

share|improve this answer
where can I find a list of mirrors – Lexicon Dec 15 '11 at 16:55
@Lexicon, just use where XX is a two-letter country code. See ISO 3166-1 alpha-2 country codes. – Anonymous Dec 18 '11 at 16:10
@Anonymous, Can you say how HUGE is Ubuntu repository.Just a curiosity – Anwar Shah May 11 '12 at 2:46
@AnwarShah, around 40000 packages compiled for both 32-bit and 64-bit aswell as source code. Debian (of which Ubuntu is a derivative) is 73 CDs or 11 DVDs, so expect at least 50 gigabyte. – Anonymous Jul 24 '12 at 20:57
that command also downloads icons, html pages, etc, that are not part of the repository. Is there a better command? – becko Aug 4 '14 at 18:40

Your Answer


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.