Install Sublime Text Code Editor on Ubuntu 16.04 | 18.04

Sublime Text is a cross-platform, sophisticated text/code editor for progrommers and folks who need a decent editor with cool features like auto-generate project-wide index of classes, smart completions based on variable types, function definitions, and imported modules and more….

This powerful code editor is available for Windows, Mac and Linux systems… and this brief tutorial shows students and new users how to install it on Ubuntu 16.04 | 18.04…

Whether you are new to programming or a seasoned programmer, you will need a great code editor to do your job…… and Sublime Text is a code editor that combines the simplicity and speed for any developer…..

And because it’s a cross-platform app that works on Windows, Mac Linux PC, it should work and allow you to move between different PC platforms…

When you’re ready to install Sublime Text on Ubuntu, follow the steps below:  There are multiple ways to install Sublime Text…

Option #1: Install Sublime Text from Repository

To install Sublime Text using its official repository, you’ll have to add it to Ubuntu…. You can install the app from Ubuntu default repositories… however, the version that comes with Ubuntu may not necessarily be the latest…

To install the latest version, follow the steps below… First run the commands below to install the repository key….

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

To ensure apt is set up to work with https sources, run the commands below….

sudo apt install apt-transport-https

Next, run the commands below to add its Stable repository…

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

If you want to install the Dev repository, run the commands below:

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

Finally, run the commands below to install…

sudo apt-get update
sudo apt install sublime-text

That should install Sublime Text…. When you’re done, Sublime Text should be installed and ready to use… To launch it, go to the Activities Overview and search Sublime Text and launch it.

Sublime Text, Ubuntu Install

Option #2: Install Sublime Text via Snap

If the option above didn’t work for you… you can also install Sublime Text via Snap package management….   This might be the quickest way to install Sublime Text… Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully…

sudo apt install snapd
sudo snap install sublime-text --classic

That’s it!

Don’t forget to install git…

sudo apt install git

You may also like the post below:

Install Visual Studio Code on Ubuntu 16.04 / 18.04

One Reply to “Install Sublime Text Code Editor on Ubuntu 16.04 | 18.04”

  1. Hi, when launched after install I am being prompted for “Enter license” and it would never let me proceed when I did not have the valid licence. Any clues?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: