1. Install sublime text 3:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
2. Apply updates. From the official website, the latest version as of writing is build 3143 (13 September 2017):
2.1 Download build:
# for 64-bit OS
curl https://download.sublimetext.com/sublime_text_3_build_3143_x64.tar.bz2 | tar vxj
# for 32-bit OS
curl https://download.sublimetext.com/sublime_text_3_build_3143_x32.tar.bz2 | tar vxj
2.2 Overwrite your old installation:
sudo cp -rf sublime_text_3/. /opt/sublime_text
2.3 Remove the download
rm -rf sublime_text_3*
Notation: If you need to delete sublime just run:
sudo apt-get remove sublime-text-installer