1

I just installed 'Sublime Text 3' and for some reason I can't install the 'package manager'. Anyway, I want to try uninstall it but I can't find it in my 'ubuntu software center'.

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 page it says to use:

sudo apt-get remove sublime-text-installer

if I installed it with (which I didn't but I want to understand this in general):

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

It also 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 

Can I always run 'sudo dpkg -r programX' from anywhere in my terminal to remove a program I installed with 'ubuntu sofware center' or with 'sudo dpkg programX.deb'?

Which method should I use to make sure a program is completely deleted? The first instructions make me a bit scared that it is installed all over the place. Why doesn't all installed software come up in 'ubuntu software center'? Is there not one place where I can delete a program like in windows' add/remove programs?

What do I need to know about installing and uninstalling programs in ubuntu (14.04)?

Kriss
  • 287

3 Answers3

1

Assuming you followed the instructions on the github, I would suggest that you use ppa-purge to remove the 'deadsnakes' ppa

sudo apt-get install ppa-purge

sudo ppa-purge ppa:fkrull/deadsnakes

Update your path to remove the path extensions added as instructed at the github, and most of lime should be inactive.

As for removing it entirely, the manner in which it was installed may require looking into the makefiles to determine what directories need to be deleted.

Charles Green
  • 21,859
0

I would not recommend using those instructions, as they are incorrect (the sed -i command doesn't even exists).

Both apt-get remove --purge and synaptic do what you need (in fact, synaptic is based on apt-get), the main difference is that synaptic uses a graphical interface, including a search tool both for installed and uninstalled packages.

If you are not sure about the package name for the application, you should use synaptic, and type its name in the search box. It will provide a list of related packages, marking the installed ones with a blue square. Right click on them and select "completely remove". Once you got all the packages selected, click apply.

For more information about apt-get, type man apt-get For more information about synaptic, read the wiki.

GDV
  • 41
  • 1
  • 1
  • 7
0

Everything Is Possible With Software Centre

Just hold with me.

See, not everybody has Sublime Text 3, but given that it's still a programme, the process shall be like this:

  1. Open Software Centre
  2. Go to History
  3. Check the package you think is related to Sublime Text 3.

I'm attaching a picture here of the screen one can expect via these steps. history section of software centre

Sometimes, the software might have a different name and package name, like the package of Color Chooser is gtkcolorpick.

If you search with "Color Chooser," you won't get any result. You shall go to the History section and look for any packages that you think or which look like related to your app.

Then, remove them.

So How Do You Remove A Package Via History?

Well, you note down the name. Suppose I want to remove dh-apparmor (which I don't). Now, I would search exactly that in "Installed" section: "dh-apparmor". If it doesn't show your app's name yet, click on "Show Technical Terms." It'll surely show up now.

Just click on that package and uninstall it!

Abhimanyu
  • 1,423