This brief tutorial will show you how to install the latest Sublime Text on Linux Mint. The installation steps will ensure auto-update of the new versions after the installation.

To install and add a repository for Sublime Text, follow the steps below.

Official documentation for Linux installation and builds can be found: Sublime Text - Linux Package Manager Repositories

Step 1: Install the GPG key for Sublime Text

The auto-update requires a GPG key and repository for Sublime Text. The GPG key for Sublime will verify that the correct Sublime repository is used and it's trusted.

The key installation is done by:

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

Step 2: Setup https sources

The https sources will add an extra level of security for the apt request. It will ensure that apt works with encryption. Install the package by:

sudo apt-get install apt-transport-https

Step 3: Add the Sublime repository

In this step we are going to add the Sublime repository. This will create subscription for the latest versions. New version will be installed with checks for the Linux Mint - Update manager.

Add the repository by:

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

Step 4: Install Sublime Text

In this step we are going to install Sublime Text 4 on Linux Mint 20. This will be done by two final commands. First one is going to update the software lists with the newly added ones. Last command will do the installation:

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

Conclusion

Sublime Text is one of the best text editors for Linux Mint. It's between a simple editor and IDE.

If you want to check what's new in the latest Sublime Text and why to install it: Sublime Text 4. In a few words adds a new UI, multi selection for tabs, GPU Rendering and more.