[How To] Install LibreOffice 4.0 In Arch Linux

The Document Foundation announced the release of 4.x yesterday and Arch Linux users can install it on their system. Since 4.x is not in the main repos yet, you will have to compile it but the process is almost automated, you will have to run less commands than you have to do when you add a PPA of Ubuntu.

The credit goes to the ever helpful Arch Community and members like Martin Fox and Josh Sabboth who pointed me to the solution. I could have waited for LibreOffice to be available in main repos but I wanted to test it so the anxiety.

Here are the steps to install LO on Arch. Keep in mind it’s manual method and could take hours to compile, it will also require you to upgrade manually each time an upgrade is out.

You need the PKGBUILD which you can either get from here or download it with yaourt. Change to the directory where you want to download and then run this command:

$ yaourt -G libreoffice-common

In the downloaded folder you will see PKGBUILD 4.0, rename it to PKGBUILD.

Now cd to this directory and run makepkg to build LibreOffice:

$ makepkg -s

This can take hours depending on how powerful your machine is. Once that’s done, you can install the packages that you need. You might face some problems with md5sums. To get the md5sums run this command which will pull md5sums from source and you can edit the PKGBUILD file accordingly:

$ makepkg -g

These are the packages created:

libreoffice-base-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-calc-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-common-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-draw-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-en-US-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-extension-nlpsolver-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-extension-presentation-minimizer-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-extension-report-builder-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-extension-wiki-publisher-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-gnome-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-impress-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-kde4-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-math-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-postgresql-connector-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-sdk-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-sdk-doc-4.0.0-0.rc2.1-x86_64.pkg.tar.xz
libreoffice-writer-4.0.0-0.rc2.1-x86_64.pkg.tar.xz

You can install the ones you need. I installed these ones, or you can install all by running this command:

$ sudo pacman -U libreoffice*.pkg.tar.xz

So, now you have LibreOffice 4.0 installed on your Arch Linux. Keep in mind that these are not the final 4.x packages as you can see these are rc2 packages. You can always switch to stable once they are available in the main repo.

Slideshow Image:

Published by

Swapnil Bhartiya

Swapnil Bhartiya

A free software fund-a-mental-ist and Charles Bukowski fan, Swapnil also writes fiction and tries to find cracks in the paper armours of proprietary companies. Swapnil has been covering Linux and Free Software/Open Source since 2005.

7 thoughts on “[How To] Install LibreOffice 4.0 In Arch Linux”

  1. Pingback: Trackback
  2. Pingback: Trackback
  3. Pingback: Johnetta Russow
  4. Pingback: Trackback
  5. Pingback: Trackback
  6. Pingback: Trackback

Leave a Reply