Ask Your Question

How to uninstall Libreoffice on Ubuntu in terminal? [closed]

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-19 05:35:18.642121


What is your Ubuntu version?

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

2 Answers

Sort by » oldest newest most voted

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

L-user gravatar image

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:

edit flag offensive delete link more


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 gravatar imageElgs Chen ( 2013-09-11 17:47:17 +0200 )edit

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

DomingoANF gravatar image

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

Question Tools

1 follower


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

Seen: 62,478 times

Last updated: Jan 31 '14