In this tutorial we will learn to install Sublime Text 3 on Ubuntu.
This will work for Ubuntu 16 and newer versions like 18.04 LTS.
Open Terminal and run the following command to install the key from the official repository of Sublime Text.
$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
Note! In the above command we are using
sudo so, you will be prompted to enter your password to continue.
Now run the following command in the terminal to add the repository.
$ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
Now update your packages using the following command.
$ sudo apt-get update
We are now ready to install Sublime Text Editor. Run the following command to install.
$ sudo apt-get install sublime-text
On successful installation you will get Sublime Text 3 on your Ubuntu machine.
Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use. There is currently no enforced time limit for the evaluation.