How to remove 'Sublime Text 3' from Ubuntu 14.04; installed with the instructions on http://www.sublimetext.com/3?

There is a question for How to remove Sublime from Ubuntu 12.04. But I'm a bit too scared to run the commands since it only says 'Sublime' and the 12.04 version of Ubuntu is specified.

I just installed 'Sublime Text 3' by clicking on the ubuntu 64 bit and then install from 'ubuntu software center'.

I want to uninstall it but now I can't find it in my 'ubuntu software center'. I don't think it is in my history (based on the time stamps) but does anyone know what 'Sublime text 3' is called in this list (just in case)?

On this page it says to type this into the command line:

sudo rm -r /opt/Sublime\ Text\ 2
sudo rm /usr/bin/sublime
sudo rm /usr/share/applications/sublime.desktop
sudo sed -i 's/sublime\.desktop/gedit.desktop/g' /usr/share/applications/defaults.list

On this page it says to install synaptic and from there install and remove packages. Or to to delete it with:

sudo apt-get remove --purge <package-name>

On this it says that if I installed it through 'ubuntu software center' or through running:

sudo dpkg -i sublime-text_build-3047_amd64.deb

Then I should remove it by running:

sudo dpkg -r sublime-text 

Which method should I use to make sure it is completely deleted from ubuntu 14.04? (The first instructions make me a bit scared that it is installed all over the place.)


  1. Search for Software Center in the Dash.

    enter image description here

  2. In the Software Center search for sublime, then click on "Sublime Text".

    enter image description here

  3. Click on "Remove" then enter your password and click "Authenticate".

    enter image description here


How did you install it?

  • If you installed it from a package (downloading a .deb, adding a PPA and using apt-get install ..., or searching the Software Centre) then the approaches using apt-get remove, dpkg -r, Synaptic or the Software Centre will all do the same thing.

  • If you downloaded an archive, extracted it somewhere and then manually created launchers, use the command line approach that has you delete those things.

If you did something else then you need to ignore all the given advice and work out the opposite of your taken approach.

FWIW, what you're describing sounds like you just need to run:

sudo apt-get remove sublime-text