Is it possible to install all packages from an APT repository?
I know it is possible to do it manually, but then you would need to know all the package names, and I don't. Any suggestions?
Thanks.
Update:
Well, you guys are going to kill me for this, but the reason for my madness is that I want to install all the packages from BackTrack into my Ubuntu installation. I really don't like the idea of having it in a VM and having a separate partition for it is even more out of the question. I know that the folks at BackTrack doesn't like it when people leech their repositories, but that's what you get for releasing open source software. Stupid? maybe.. A valid reason? probably not.. Do I still want it? Yes.
Another edit:
I have now given up on this as it seems impossible to get it to work even by manually installing packages.
Best Answer
That's a pretty ridiculous thing to do.
Edit: as suggested in other answers/comments, there are much easier ways to accomplish this through preexisting tools such as the package manager or aptitude. At any rate, the following describes where this information comes from. Their answers make more sense.
Ubuntu's repository locations can be found in /etc/apt/sources.list When you look in that file you'll probably see something like:
If you visit the url you can for example find the binary packages for lucid main for i386 at the following location:
If you download archive file, there is file within that has a text file with the packages inside. By looking at it its easy to understand the format. For example, the first entry in the file:
So you could then write a script that parses out each package name in the file and adds it to your 'sudo apt-get install' line...
...but that seems like a crazy thing to do. I imagine not all packages are going to agree with each other and do you really need EVERYTHING? It seems like an exercise in wasted time and resources for you and others.