How to install Sublime Text in Ubuntu 20.04

Share this article

Sublime Text is a text editor software that allows users to create, change, or edit plain text files. This software is most commonly used for programming purposes. Sublime text is written in C++ and Python, it is available for Windows, Mac, and Linux.

Sublime text editor provides the following features:

  • Provide a simple and fast interface.
  • Show all the space available (full screen, multi-screens etc)
  • With a lot of plugins available to support all different programing language, you can modify and customize it for your needs.

The sublime text is an editor, not a full-fledged IDE, it comes in handy for those who are looking for a simple & minimal editor it will be a good option. In this article, we will explain how to Install sublime editor in ubuntu-20.04 with snap and apt.

Installing package through apt

Advanced Packaging Tool (apt) is a package manager that is used for managing the installation, updating, and removal of software packages in ubuntu. The apt repository contains a sublime text package for both x86-64 and arm64.

For installing follow the below-mentioned steps.

step 1. Install the GPG key:

wget -qO - | sudo apt-key add -

step 2. Ensure apt is set up to work with HTTPS sources:

sudo apt-get install apt-transport-https

Step3. Select the branch to use:
For the stable branch using the following command. In this article, we will be installing a stable branch.

echo "deb apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

For the dev branch use the following command

echo "deb apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Step4. Update apt sources and install Sublime Text

sudo apt-get update
sudo apt-get install sublime-text

Verify your installation.

For verification, you can search for sublime in the show application window. After the search, you will get the following icon in the search

After clicking on the Icon you will get a sublime editor and you can start editing your code. See the snapshot below:

Installing package through Snapd

Snapcraft [snap] is a package manager for Linux. Packages are called snaps, they are discoverable and installable from the Snap Store. It has the benefit of providing updates to the software without relying on a distribution to manage updates.

You can install snap if not present with the following command

sudo apt update
sudo apt install snapd

To install sublime-text, use the following command:

sudo snap install sublime-text --classic

Verify your installation

You can follow the same procedure we showed in the previous section to verify the successful installation.

Register Sublime text

In the verification step, you saw that we installed a free version of the Sublime text that’s why it is showing unregistered on top of the window. If you don’t want to buy a license that is totally fine you will be not able to use some paid features and sometimes you will see messages popping up while using sublime text.

You can register the sublime text by using the below-mentioned steps:

1 purchase the license.

In sublime text editor go to Help and from drop-down menu chose Purchase license. You will be redirected to the sublime store page ( add your information and can buy the license.

2. Add the license in the sublime editor.

Go to the Help, for the drop-down menu click on Enter License you will get the following window to add your license key and then click on Use License.

3 thoughts on “How to install Sublime Text in Ubuntu 20.04”

  1. zoritoler imol

    Its excellent as your other blog posts : D, appreciate it for putting up. “Reason is the substance of the universe. The design of the world is absolutely rational.” by Georg Wilhelm Friedrich Hegel.

    1. Thank you for your comment. For now, this blog site is in starting phase and nowadays I am quite busy I will provide the RSS feed soon in the future.

Leave a Comment

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