Why does Chromium use so much disk space on Gentoo Linux

compilingdisk-usageemergegentoosoftware installation

I have chosen Gentoo for my Linux distribution. I installed it in VirtualBox for practice purposes only, so I just gave it 10GB of disk space. Yesterday when I tried to emerge the Chromium package, it printed the following:

"There is NOT at least 5GB disk space at /var/tmp/portage/www-client/chromium-42.0.2311.90/temp. Space constrains set in the ebuild were not met"

5GB? Why does it need so much space? If it is true, it means that it will be impossible to install Chromium on some machines which have little disk space.
Or there is another way to install it which I don't know about?

Best Answer

Gentoo is a Linux distribution that compiles packages from sources. Compiling packages requires much more space that installing pre-compiled binaries (that is, binaries that are compiled on the machines of the distribution maintainers). When you install something from the sources, you also need the sources for all the compilation dependencies.

Almost all the other distributions, instead, download binaries already compiled for that distribution.

To give you an example, Chromium-browser in Linux Mint (based on Ubuntu) takes only 44MB of space in disk, instead of 5GB that will take on the system of the Mint "developer" that maintains this package and compiles the updated binaries for the Mint "users".

If you have disk space restrictions, maybe you could test a different Linux distribution that provides precompiled binaries (CentOS, Ubuntu, Mint, etc) (also, with another distribution you will install and update packages faster and easier, as they don't have to be recompiled each time!).

Related Question