How to Install LibreOffice in Ubuntu 10.04, 10.10 and 11.04?

Do you want to install LibreOffice and make it your primary office suite instead of OpenOffice in Ubuntu 10.04, 10.10 and 11.04? Here’s a quick tutorial that will teach you how to install the new LibreOffice open source office suite and replace the old OpenOffice.org office suite. Natty Narwhal (11.04) and later versions comes bundled with LibreOffice out of the box.

However, the LibreOffice office suite package is also available for Ubuntu 10.10 (Maverick Meerkat) and Ubuntu 10.04 LTS (Lucid Lynx) users. There are two ways to install, you can either remove OpenOffice completely and install or you can add the LibreOffice PPA and test it. Adding the LibreOffice PPA only won’t affect OpenOffice.

Update: You’ve to remove OpenOffice first and then install LibreOffice. Thanks to MTG readers Kent and Fabio for bringing it to my notice.

How to remove OpenOffice.org?

Open the terminal and type the following command:

sudo apt-get purge "openoffice*.*"

You will be asked for your password, type your password and press the Enter key on your keyboard to continue. When asked, “If you want to remove the OpenOffice.org package,” type “Y” and press the Enter key. Wait for the OpenOffice.org packages to be removed.

How to add the LibreOffice PPA repository?

To add the PPA, add ppa:libreoffice/ppa to your software sources or open the terminal and type the following command:

sudo add-apt-repository ppa:libreoffice/ppa

You will be asked for your password, type your password and press the Enter key on your keyboard to continue.

How to install LibreOffice?

Open a new Terminal session and run the following commands:

sudo apt-get update && sudo apt-get install libreoffice

You will be asked for your password, type your password and press the Enter key on your keyboard to continue.

Now, Ubuntu users should run the following command:

sudo apt-get install libreoffice-gnome

Kubuntu users should run the following command:

sudo apt-get install libreoffice-kde

That’s it! LibreOffice is now completely installed in your Ubuntu machine. If you have any problems, do not hesitate to comment below!