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

  • I recommend editing this to add captions in words explaining the steps illustrated in the screenshots. – Eliah Kagan Aug 17 '14 at 6:55
  • 1
    Despite the lack of captions, I still can't understand why so much downvoting. The answer is not well written, but it's at least correct. – Andrea Lazzarotto Aug 17 '14 at 12:43
  • 1
    now that is a real answer... – Mateo Aug 17 '14 at 13:23
  • @AndreaLazzarotto maybe other people did what I did i.e. went to sofwtare center and searched for Sublime under the 'installed' tab. For some reason you cannot find sublime there... This is why I started looking around for other solutions when all I would have had to do was to search for Sublime in the 'All software' tab. – Kriss Aug 18 '14 at 3:59

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
  • Great! It helps me a lot. – mja Aug 27 '16 at 16:25
sudo apt-get remove sublime-text-installer

This command will completely remove the utility program from ubuntu. My recommendation is to this command.

  • 1
    But it does not remove sublime settings – maq Jul 29 '15 at 23:04
  • I guess this command will just remove the installer. Following line is printed when you execute above command: "After this operation, 26.6 kB disk space will be freed." -- 26.6kB ?? – Kapil Jituri Mar 25 '16 at 7:01
  • @KapilJituri: That's because the installer itself is only that small. The package manager doesn't know that the package removal will also trigger the removal of a bunch of (much larger) indirectly installed files by the package’s custom pre-removal script. – David Foerster Mar 17 '18 at 23:03

All methods, except for the first one, will effectively remove Sublime, granted you provide the correct package name.

When you installed Sublime, you downloaded a Debian Package, which the Software Center proceeded to install. Software Center tends to be very poor handling these packages, so I recommend you not using it to find your installed package, instead use dpkg and grep to find the package name:

dpkg -l \*sublime\*

It will show you any package with the name "sublime", then you can use any of the methods you listed to remove it.

The first will remove a manually compiled/installed Sublime, which didn't use the APT/DPKG system, so I wouldn't recommend it unless you actually employed this method.

  • Fastest way to find package and then do sudo apt purge packagename – vrcmr Sep 30 '17 at 20:00

First of all install Synaptic package manager using:

sudo apt-get install synaptic

Then, choose mark for removal for sublime-text installer and then, remove it.

  • This does not answer the question, OP asked what the best removal technique is, also the already stated they know about synaptic, please explain how this answers the question. – Mark Kirby Jan 6 '16 at 15:20

protected by Community Dec 5 '18 at 13:55

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.