Install Sublime Text on Linux Mint 21

Sublime Text is a popular code editor used by developers on Linux and other operating systems. It is known for its ease of use, powerful features, and extensibility.  One of the reasons Sublime Text is so popular is that it is highly customizable. You can use plugins and extensions to add new features and functionality and customize the look and feel of the editor to suit your preferences. This makes Sublime Text a very flexible tool that can be tailored to the needs of individual developers. This post will list all the possible methods to install sublime text on Linux Mint 21. 

Approach#1: Install Sublime Text on Linux Mint 21 From its Repository

Sublime’s repository is unavailable in the Linux Mint’s 21 repositories. However, its own repository can be added alongside its key to install sublime on Linux Mint 21. The following steps are carried out to perform all the processes. 

Step 1: Add the GPG Key

Add the GPG key to the Sublime’s repository on Linux Mint 21 using the below command. 
$ wget -qO - | sudo apt-key add -

Step 2: Add the Sublime’s Repository

After that, use the command written below to add Sublime’s repository. 
$ echo "deb apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Step 3: Update the Packages and Install Sublime

Once the GPG key and repository are added, update the packages list using the script.
$ sudo apt update 
Now, install the sublime package using the below command. 
$ sudo apt install sublime-text

Launching Sublime

Search for sublime in the search bar of the start menu, and click on it to launch. After launching, the following interface will appear.

Approach#2: Install Sublime on Linux Mint 21 From Snap Store

The sublime package is also available on the Snap store. The steps below will allow you to enable the snap daemon and install sublime through it. 

Step 1: Enable the snap Support

The following commands will enable the snap support and the package update. 
$ sudo rm /etc/apt/preferences.d/nosnap.pref
$ sudo apt update
Note: If the nosnap.pref file is already deleted, then it will show no such file or directory as in our case.  And use the command to install the snaps.
$ sudo apt install snapd

Step 2: Installing Sublime

Now, install the sublime package on Linux Mint 21 using the below command.
$ sudo snap install sublime-text --classic
The output shows that the sublime’s version 4143 has been installed successfully.

Approach #3: install Sublime on Linux Mint 21 Using GUI

The above-discussed methods follow the Command Line Interface to install sublime text on Linux Mint 21. However, the sublime can be installed on Linux Mint 21 through the GUI support of the Flatpak packages support. For this, we have listed the steps to install sublime through GUI.

Step 1: Launch Software Manager

From the start menu, search for the software manager and click on it to launch.

Step 2: Search Sublime

Search for sublime in the search bar and click on the package in the search result, as shown below.

Step 3: Install Sublime

From the next opened interface, click on the “Install” button as shown below. The installation will be started, and it will take a few moments to get it on your system.

Remove Sublime Text From Linux Mint 21

The Sublime can be removed from the linux Mint by following one of the methods mentioned below. 

Through Snap

The Sublime’s installed using the snap can be removed from the system using the command provided below. 
$ sudo snap remove sublime-test

Through apt

If you have installed the package using the sublime’s repository, it can be removed using the command.
$ sudo apt autoremove sublime-text


Sublime text is one of the most used text and source code editors on Linux Mint 21. The sublime-text editor can be installed on the Linux Mint 21 from the snap store and by adding the sublime’s repository. Following this post, you have learned three methods to install the sublime editor on Linux Mint 21.
Print Friendly, PDF & Email