[Ubuntu 11.10] How to remove LibreOffice?

Hello

I need to customize the live ISO by removing applications my users won't
need.

One of them is LibreOffice: How can I remove it entirely, in one go?

" dpkg -l "libreoffice*" " returns a lot of stuff, with no obvious main
package that I could remove with "apt-get --purge remove":

Thank you.

PS : Can grep only display the first two columns of data returned by "dpkg
-l", or must I use sed or awk?

That's a Debian/Ubuntu question, not a LibreOffice one.

What you need to do is to use the proper tools to create a custom LiveCD.
With those tools, you can select what packages to remove during the
generation of the ISO.
Look for the package 'ubuntu-defaults-builder', which comes with
Ubuntu 12.04 (maybe with 11.10 as well).

Simos

Thanks Simos. I wasn't getting replies over there, so asked here. I don't
know how to uninstall LibreOffice.

I'll look into "ubuntu-defaults-builder" to see if that's the right tool to
customize a live ISO that I can reuse to create new bootable USB keydrives.

It depends where you ask for Ubuntu.

For the tool that I mention, see the documentation at
https://wiki.edubuntu.org/DesktopTeam/Specs/Oneiric/LocalizedCDImageTools
There are many things that you can customise in the final ISO.
It was initially written so that you can have localised ISOs, but it
still suits your needs just fine.

Simos

I just went ahead and ran "apt-get --purge remove libreoffice-core".
Incidently, this doesn't remove the LibreOffice icons in the Unity bar.

Thank you.

Hi :slight_smile:
I'm  not completely clear about what you are aiming for but this might neatly avoid a lot of side-issues
http://www.libreoffice.org/download/portable/

Install LibreOffice directly onto Usb-stick and tweak them, set-up your personal preferences the way you like and then use the usb-stick in any Windows machine to use the apps you like without having to get permission to install directly onto those machines.  It neatly avoids leaving so much of your stuff on those other machines too :)  You can include other apps alongside LO, such as Thunderbird, Gimp (i think) and stuff :slight_smile:

Regards from
Tom :slight_smile:

Hi :slight_smile:
Ahh, how about using your package manager to do the job for you?

gksu synpatic

Should open my favourite package manager (atm) but any of the others might remove all the extra parts of LO just as nicely.  How about skipping a lot of this sort of thing and rebase off Lubuntu instead of Ubuntu?  Lubuntu is carefully made to be as light and fast as possible in a point&click noob-friendly gateway distro
http://distrowatch.com/table.php?distribution=lubuntu

Regards from
Tom :slight_smile:

Do you have Synaptic installed? If you do, you can use it to remove/purge all the installed LO parts. What you did only removes specific files and will leave other LO files behind.

If you do not have Synaptic installed you can use the Ubuntu Software Center or apt-get install Synaptic.

...

$ sudo apt-get purge libreoffice*

Note the asterisk at the end of libreoffice.

You can see what will get purged by 'simulating' the command with '-s:

$ sudo apt-get purge -s libreoffice*

That last will run the command without actually doing the purge, so you
can see which packages will be removed when you run the command without
'-s'. See 'man apt-get'.

Tom wrote

I'm  not completely clear about what you are aiming for but this might
neatly avoid a lot of side-issues
http://www.libreoffice.org/download/portable/

Thank everyone. Running "apt-get purge libreoffice*" did seem to remove the
whole thing, although I had to remove the four icons left over in the Unity
taskbar.

I was trying to remove LibreOffice from the live ISO before attempting to
remaster it into a lighter ISO. Ubuntu + Unity is different enough that I
couldn't find Synaptic; Besides, deleting the four LibreOffice applications
through the GUI package manager didn't remove all the dependencies.

I'm 230MB lighter :slight_smile:

Hi :slight_smile:
AbiWord and Gnumeric are a lighter-weight equivalents of Writer and Calc.  You can also get big reductions by removing Evolution and using Thunderbird or the even smaller Claws as an email client.  You lose a lot of functionality but at least you get the basics. 
Regards from
Tom :slight_smile:

IIRC synaptic is a GUI front end for apt-get/aptitude. I don't think it
will remove any more files.