English
Ask Your Question
0

How to uninstall Libreoffice on Ubuntu in terminal?

asked 2013-09-11 07:35:29 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm running Ubuntu without desktop. I have only terminal access to my Ubuntu server. I installed LibreOffice 4.1.0 for pdf generating. I installed LO 4.1.0 by following the readme file using dpkg -i *.deb. Now I want to upgrade to 4.1.1, so now I want to uninstall the previous version first. But I don't see from any documentation how to do it.

If I can manage the install/uninstall using apt-get, that would be the best. However, I get a very old version of LibreOffice using Ubuntu's default apt-get.

edit retag flag offensive close merge delete

Comments

What is your Ubuntu version?

L-user ( 2013-09-11 17:07:28 +0200 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2014-01-31 03:38:08 +0200

updated 2014-01-31 03:40:46 +0200

My friend, you must use

# sudo apt-get remove --purge libreoffice*.*
edit flag offensive delete link more
0

answered 2013-09-11 17:03:46 +0200

updated 2013-09-11 17:07:51 +0200

I suggest to uninstall libreoffice currently installed on system:
1. If installed from official repository:

sudo apt-get remove --purge libreoffice

2. If installed from deb package:
sudo dpkg -P libreoffice

Note: If you are not sure how you installed, you can execute both commands.

Never install LibreOffice from LibreOffice download page using deb package, because this packages are not optimized for Ubuntu, but are common packages to all Linux distributions. I suggest to install LibreOffice from Ubuntu PPA.

See my answer how to add LibreOffice 4.1 Ubuntu PPA: http://ask.libreoffice.org/en/question/21363/update-issue-on-ubuntu/

edit flag offensive delete link more

Comments

Thanks for the PPA information, which is exactly what I have been struggling to look for. However, I still cannot remove it using the command line. Here's what I got:

# sudo dpkg -P libreoffice
dpkg: warning: ignoring request to remove libreoffice which isn't installed
Elgs Chen ( 2013-09-11 17:47:17 +0200 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2013-09-11 07:35:29 +0200

Seen: 13,490 times

Last updated: Jan 31