Published March 29, 2018 by

Install Sublime Text 3 in Linux

The popular cross-platform Sublime Text editor finally offers official Linux apt repository to make it easy to install and receive an update in Ubuntu.

Sublime Text is a proprietary source code editor with a Python API. It supports many programming languages and markup languages, and its functionality can be extended by users with plugins.

It’s available to download and use for free, but you’re supposed to buy a license if you plan on using it full-time.


Install Sublime Text in Ubuntu

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

sudo apt-get install apt-transport-https

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

sudo apt-get update

sudo apt-get install sublime-text

Now we can run sublime from an application menu.


Install Sublime Text in Centos/RHEL

# sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
# sudo yum-config-manager --add-repo 
# https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
# sudo yum install sublime-text 

Run Sublime-Text on a terminal

sublime

Uninstall

sudo apt-get remove sublime-text                       # for ubuntu
sudo apt-get autoremove

sudo yum remove sublime-text                           # for centos
sudo yum autoremove