Thanks to Webupd8 Team, an installer script has been made into PPA that automatically downloads Sublime Text 2 from its website and installs it and its launcher, docs on your Ubuntu.
To add the PPA, open terminal from Dash/Menu or by pressing Ctrl+Alt+T on keyboard. When it opens, run:
sudo add-apt-repository -y ppa:webupd8team/sublime-text-2
After adding the PPA, you can install the text editor via Synaptic Package Manager (install it from Software Center) by doing below steps:
- Launchpad Synaptic package manager and click Reload button.
- Search sublime-text in the filter box.
- right-click on sublime-text and select “mark for installation”.
- finally click Apply button.
Once installed, launch the editor from the Dash/Menu.
Install Sublime Text 3 Beta in Ubuntu:
Similar to above instructions, run below command instead to add another PPA and finally install the editor via Synaptic package manager.
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3
NOTE: you can only install one version of Sublime Text in your Ubuntu. To install version 3, you may first remove version 2 from Synaptic package manager.