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 Answers
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!)
- 6,111
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
- 11,074