1

I downloaded LibreOffice 4.1 and I want to install it in Ubuntu. I read its readme file. It said I have to first uninstall previous LibreOffice but I don't know how to do uninstall it.

3
  • you usually only have to de-install if you installed it directly via the .deb file on the site. If you use a package manager (like apt or via the software centre) you should be ok just performing an upgrade
    – amc
    Aug 1, 2013 at 6:56
  • it is recommended to wait a little for the new libreoffice version to be available through official ubuntu repositories unless you're prepared to take the risk of experiencing various problems.
    – Sadi
    Aug 1, 2013 at 8:32
  • I downloaded libeoffice for its site and I have .deb files I'm not using apt.
    – sajjad
    Aug 1, 2013 at 21:53

3 Answers 3

3

If you want to install a package on top of another one, system package management tools should take care of it, so you could locate your package, say its called libreoffice.deb, and just run

sudo dpkg -i libreoffice.deb

If the package is indeed the same application but another version than the one installed, you will read in the terminal that the package you are installing will be unpacked as a replacement.

If you still need to remove the previous package, or you just want to know how to remove a package, the following command is what you're looking for:

sudo apt-get remove libreoffice*

(The asterisk will make match all packages whose name start with libreoffice, like libreoffice-3.0 for example. For more information on wild cards like these look into regular expressions.)

But you're better off installing the official PPA

This way apt will handle your software. A Google search for

libreoffice ppa

yields LibreOffice's launchpad page, from which you can view instructions on installing the PPA. In fact, its as simple as running

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get upgrade

:)

(Note that installing through the PPA will replace your current LibreOffice install without need for removing it; it will also keep it up to date!)

4
  • 2
    WARNING: this ppa contains development versions and is not considered production-worthy. If you require a stable version you should use one of the version-specific ppa's listed on the launchpad site
    – amc
    Aug 1, 2013 at 6:53
  • Great point, also thanks for the edit I don't know how I forgot the other essential commands
    – Severo Raz
    Aug 1, 2013 at 20:37
  • I downloaded its stable version 4.1 .deb files from libreoffice. I want to install them. but I don't know how to de-install previous version of libreoffice from my PC.
    – sajjad
    Aug 1, 2013 at 22:13
  • Ok I updated the answer so it answers your question directly without evasion :)
    – Severo Raz
    Aug 2, 2013 at 0:23
2

Before installing the newer version, you want to remove the previous version.

Type the following in terminal to remove libreoffice.

sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
3
  • 1
    there is no need to remove it before upgrading -- in fact, this will make it more difficult to reinstall the newer version because you will have removed the additional packages Libre Office needs to look/feel native with Unity
    – amc
    Aug 1, 2013 at 6:51
  • I see these: "If you have a previous version of LibreOffice already installed, then you will need to de-install it before proceeding further." in libreoffice 4.1.0.4 which I downloaded its .deb files from libreoffice.
    – sajjad
    Aug 1, 2013 at 22:17
  • To clarify: if you are using a ppa or other repository then you normally don't need the deinstall prior to upgrading. However, if you use the deb file directly from the site you will likely need to. Keep in mind that the version directly from the site won't have the look/feel of unity and gnome because you won't get all the other packages that Ubuntu includes with LO from the repos
    – amc
    Aug 1, 2013 at 23:43
2

The libreoffice/ppa is labeled as "test builds and backports" although it is managed by the maintainer of LibreOffice in Ubuntu.

So it might be a better idea to use instead libreoffice/libreoffice-4-1 which is labeled as "stable backports" although it takes several days longer to become available.

The Terminal commands required:

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update && sudo apt-get dist-upgrade

Not the answer you're looking for? Browse other questions tagged .