Ubuntu – How to remove Sublime installed using the website instructions

software installationsublime-text

I installed Sublime following steps from this Site. But I read on here that it is wrong way to install. Now my question is how do i remove it.

Best Answer

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