Installing Community OpenOffice.org under Ubuntu
July 1st, 2007I’ve commented earlier on the differences between the OpenOffice.org you can download from the OpenOffice.org website (Community OpenOffice.org) and the version that comes by default in Ubuntu (ooo-build OpenOffice.org). I’ve had a few problems with the Ubuntu version, so I decided it was time to bite the bullet and replace Ubuntu’s version with the community’s latest 2.2.1 version.
Here’s what I did, step by step.
Community OpenOffice.org ships in RPM format, rather than the .deb format used by Ubuntu. To convert from one to the other, you need the alien utility. If you haven’t already installed alien, do so:
$ sudo apt-get install alien
Download OpenOffice.org 2.2.1 from a mirror near you and unzip it
$ cd /tmp
$ wget ftp://ftp.mirrorservice.org/sites/ny1.mirror.openoffice.org/stable/\
2.2.1/OOo_2.2.1_LinuxIntel_install_wJRE_en-US.tar.gz
Resolving ftp.mirrorservice.org...
[...]
hh:mm:ss (473.08 KB/s) - `OOo_2.2.1_LinuxIntel_install_wJRE_en-US.tar.gz' saved
$ tar -xvzf OOo_2.2.1_LinuxIntel_install_wJRE_en-US.tar.gz
OOF680_m18_native_packed-1_en-US.9161/
[...]
OOF680_m18_native_packed-1_en-US.9161/readmes/README_en-US
$
Convert the RPMs into debs:
$ cd /tmp/OOF680_m18_native_packed-1_en-US.9161/RPMS
$ sudo alien --scripts --keep-version -d *.rpm
openoffice.org-base_2.2.1-9161_i386.deb generated
[...]
openoffice.org-xsltfilter_2.2.1-9161_i386.deb generated
$
You are now ready to remove Ubuntu’s OpenOffice.org. I’d like to thank Marilen Corciovei for this semi-automated process. If you’d like to check first what will be removed, run this spell:
$ dpkg --list | grep ii | grep openoffice | cut -c5-35
openclipart-openoffice.org
openoffice.org
[...]
openoffice.org-writer
$
If you’re happy with the list, this spell will remove them:
$ for i in $(dpkg --list | grep ii | grep openoffice | cut -c5-35); do sudo apt-get --assume-yes remove $i; done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
[...]
$
Now install the Community OpenOffice.org packages:
$ cd /tmp/OOF680_m18_native_packed-1_en-US.9161/RPMS
$ sudo dpkg -i *.deb
Selecting previously deselected package ...
[...]
Setting up openoffice.org-xsltfilter (2.2.1-9161) ...
$
Ubuntu calls the programs oocalc etc; the Community version calls them scalc etc. This little cheat sets up synonyms:
$ cd /opt
$ sudo ln -s openoffice.org2.2 openoffice
$ cd /usr/bin
$ sudo ln -s /opt/openoffice/program/soffice ooffice
$ sudo ln -s /opt/openoffice/program/scalc oocalc
$ sudo ln -s /opt/openoffice/program/swriter oowriter
$ sudo ln -s /opt/openoffice/program/sdraw oodraw
$
Hopefully, when you start up OpenOffice now, you will see Community OpenOffice 2.2.1. If so, you can delete the installation files:
$ cd /tmp
$ rm -rf OOF680_m18_native_packed-1_en-US.9161
$ rm OOo_2.2.1_LinuxIntel_install_wJRE_en-US.tar.gz

July 7th, 2007 at 1:42 am
We need more of this tutorials on easier media like video tutorials. Not many ubuntu users are awre of alien and I guess a better documentation for it will be rewarded.
do we see any need from end users on HOWTO get OOo on their boxes? Could we do more?
July 7th, 2007 at 12:31 pm
I would guess the vast majority of Ubuntu users do not realise there is a difference between the OpenOffice.org shipped with Ubuntu and the Community version. It’s only when they start reporting bugs to the Community mailing lists that they are told that there’s a difference.
I can’t say I really recommend the process here for someone with no ‘command-line experience’.
John
August 3rd, 2007 at 1:53 pm
I have followed instructions in
http://www.mealldubh.org/index.php/2007/07/01/installing-community-openofficeorg-under-ubuntu/
after correcting some command lignes like:
$ sudo alien –scripts –keep-version -d *.rpm
to
$ sudo alien –script –keep-version -d *.rpm
and
same for the two other lines replaced – with –
I have checked with synaptic package manager and all seemed installed ok
but one thing in the applications->Office Menu the icons are gone exept Evolution Mail. How do I get them back?
August 3rd, 2007 at 4:27 pm
Guy – I think my blogging software changes two dashes into one long dash
Check the contents of the desktop-integration directory and execute/desktop-integration/…
/desktop-integration/openoffice.org-debian-menus-.noarch.rpm
alien -i
for the menu rpm that applies to your system. For example, on a Debian-based system, you would use
alien -i
or similar.
John
August 21st, 2007 at 11:14 am
Debian packages can be get from: http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/
January 11th, 2010 at 9:49 am
Good job! It may be helpful in the process of studying ubuntu so I’ve scrape it using scrapebook(firefox addon). Can you recommend any books about ubuntu for me? yeah, I am a noob of ubuntu.
thanks in advance!