Projects and resources (En) > Tips and tricks

Installing Libreoffice - custom install


Something I discovered whilst setting up a new build answered a question that had been bugging me for a while.  The new build has extra software installed, the extras that everyone uses - video player, Gimp and Libreoffice.  Of course the risk is that the overall size will blow right out, and Libreoffice is a huge offender there.  For example I never use the data-base component with all its java and stuff.

The total amount of space taken up by Libreoffice on install is 456mb.  In the process of working out how to cut that down I was poking around on a topical Arch page when I noticed Libreoffice was listed by package, with libreoffice-common catching my eye.  Sure enough, apt has this listed, along with all the other packages.  So if you

--- Code: ---apt-get install --no-install-recommends libreoffice-common
--- Fin du code ---
the package will occupy 200mb of disk space. 

You can then add the other components as you wish.  You might only want  the "writer" package, so
--- Code: ---apt-get install --no-install-recommends libreoffice-common libreoffice-writer
--- Fin du code ---
or just
--- Code: ---apt-get install --no-install-recommends libreoffice-writer
--- Fin du code ---
will give you Libreoffice with just the word processor part for 231mb. 

If you decide you want a bit more and ask
--- Code: ---apt-get install --no-install-recommends libreoffice-writer libreoffice-calc libreoffice-impress libreoffice-math
--- Fin du code ---
you will have Libreoffice that does word processing, spreadsheets, powerpoint and draw, and formulas for 270mb - thats 186mb saved if you don't want data-base and all the cruft that goes with it. 

That's a fair saving, and the data-base packages can be easily added in later if they are actually needed.

--- Code: ---apt-get install --no-install-recommends libreoffice-base
--- Fin du code ---

Nice to see some modularity and to be given a choice about how much of a software package we want or need. 


To do the same thing in Ubuntu I was selecting "writer", "calc", and "impress" (which people like to have to watch at their "beloved pps") in Synaptic. As I have added the "no recommend" line directly in the apt configuration, the additional weight was also kept to the minimum.


[0] Index des messages

Utiliser la version classique