How to Install Sublime Text 3 on Ubuntu 20.04

Sublime Text 3 (ST3) is an excellent choice as your go-to program to edit code, Sublime is known for its speed, ease of use, cross-platform, and community contribution. It natively supports many programming languages and markup tongues, but users can expand its functionality with plugins too!

The Python API makes it easy; just make sure you download from within Sublime or else they won’t show up in settings, also you can further customize and enhanced it by installing additional features using package control and custom settings.

In the following tutorial, you will know how to install Sublime Text 3 on your Ubuntu 20.04 LTS Focal Fossa.

Update Ubuntu System

Update your Ubuntu operating system to make sure all existing packages are up to date:

sudo apt update && sudo apt upgrade -y

Install Dependecies

The following dependencies will need to be installed. If unsure, just run the command; these are commonly used system packages.

sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common curl -y

Install Sublime Text Editor

The installation is pretty straightforward; thanks to Sublime’s APT repository, first import the GPG key as follows.

curl -fsSL | sudo apt-key add -

Next, import the repository using the following command.

sudo add-apt-repository "deb apt/stable/"

Once the repository is imported, you can begin the installation.

sudo apt install sublime-text -y

Launch Sublime Text 3

With the installation complete, you can run the text editor in a few different ways.

First, while you are in your terminal, you can use the following command.


Alternatively, run the subl & command in the background to free up the terminal:

subl &

However, this isn’t practical, and you would use the following path on your desktop to open with the path: Applications > Search > Sublime Text.


sublime text ubuntu how to install

The first time you launch Sublime Text, you should see the following window. Ignore the unregistered part unless you plan to use the software for commercial/enterprise use.

sublime text editor launched and opened

Remove (Uninstall) Sublime Text Editor

If you no longer require sublime text, you can remove it from your system as follows:

sudo apt autoremove sublime-text --purge -y

Comments and Conclusion

You have learned how to install Sublime Text 3 on your Ubuntu 20.04 LTS Focal Fossa operating system by learning how to add the source repository and the additional feature of a snap install. Now, you can visit the Sublime Text Package Control, which you can directly download other features to customize your Sublime Text editor to your requirements.

To find more information about Sublime Text, visit the official Sublime Text documentation page.


Like to get automatic updates? Follow us on one of our social media accounts!