How to Install Sublime Text 4 on Ubuntu 20.04

Sublime Text is a cross-platform and proprietary source code editor. It provides tons of features and plugins which greatly help in the development of applications. Sublime Text is written in C++ and Python.

Notable features include split editing, quick shortcuts, syntax highlighting, autocompletion, selection of multiple lines or words, and much more.

Sublime Text 4 was released on May 20, 2021, and comes with a wide assortment of improvements, These include:

  • Refreshed UI with new tab styles. Color schemes and themes that support auto dark-mode switching
  • Support for Typescript and JSX.
  • Smart auto-completion.
  • Multi-tab selection.
  • GPU acceleration.
  • Updated Python API . The API has been updated to Python 3.8 and has been upgraded to provide more features and plugins.
  • Improved syntax highlighting with multi-line contructs, and non-deterministic grammar.
  • Support for ARM64 for Linux and Apple Silicon.

In this tutorial, we learn how to install Sublime Text 4 on Ubuntu 20.04.

Step 1: Download and install GPG Key

To begin, launch your terminal and add the Sublime Text GPG key.

$ wget -qO - | sudo apt-key add -

When prompted for your sudo password, simply provide it and hit ENTER.

Step 2: Enable Sublime Text repository

Once the GPG key is added, install the apt-transport-https package. This ensures that the metadata and packages for Sublime Text can be accessed securely over the HTTPS protocol.

$ sudo apt install apt-transport-https

Thereafter, add the Sublime Text official repository.

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

Step 3: Install Sublime Text 4 on Ubuntu 20.04

With the Sublime Text GPG key and official repository added, update the package index to sync the newly added repository.

$ sudo apt update

And finally, install Sublime Text4.

$ sudo apt install sublime-text

Upon installation, Use the application manager to search and launch Sublime Text.

launch Sublime Text editor
Sublime Text editor

Upon launching Sublime Text 4 for the first time, you will see a dark gray window.

Sublime Text Editor 4 Window
Sublime Text Window

To check the Sublime Text version, click Help menu.

Build version 4113 indicates the latest Build version from Sublime text 4.

version check
Check Sublime Text 4 version

How to uninstall or Remove Sublime Text

If you don't want Sublime Text anymore on your system, you can uninstall it using the command:

$ sudo apt remove --autoremove sublime-text


That concludes this topic on how to install Sublime Text 4 on Ubuntu 20.04. If you looking for the old version of Sublime, available in Sublime Text 3 Repos.

If you have any questions, suggestions, feedback please write them in the comment box below.

Leave a Comment