Ubuntu – How to install ALL development libraries

aptgcclibraries

I want to preinstall all the libraries one could ever need onto a system so someone building something would always have the libraries available.

Like in a computer lab where users are not root.

I want to do something like apt-get install lib* but I don't think that will be a good idea. Is there a package like most-libs-used?

Best Answer

Run this:

apt-cache search dev|grep "\-dev"|cut -d' ' -f1|sort > available-devs.txt

It will create the file available-devs.txt with a list of all available -dev packges in the archive (and within any PPAs or other archives you have added). You can then go and install them all. You can't install them all at the same time, as there are more package names than allowable program arguments in a POSIX system, so you'll have to install some bit by bit. Also, if you really want to install all of them, I hope you have a very large storage system for your main OS partition.

Also, that only grabs the ones for the arch you're currently on, I think. To install both i386 and x86_64 versions on a 64-bit Ubuntu install, you'd need even more space, and have to install a lot more of the same, with :i386 appended to the package name. But not all libraries in the archive are set up for MultiArch support yet.