In this tutorial we show you how to install Sublime Text 3 on Ubuntu, Linux Mint, and other Ubuntu-based Linux distros the recommended way.

Sublime Text is a popular cross-platform text editor with a big following among web and software developers. Sublime Text is available natively for Linux distros like Ubuntu, as well as Windows and macOS, but it’s not available from the Ubuntu repos.

Read on to learn how to add the Sublime Text repository to your system to install Sublime Text 3 on Ubuntu 18.04 LTS and up. This repo is the best way to install the app as it ensures you get future updates to the editor as and when they’re released, automatically, no hassle!

Sublime Text 3

sublime text 3 screenshot from ubuntu

Sublime Text 3 is a proprietary text editor available to use for free on all major operating systems, including Linux-based ones like Ubuntu.

Both fast and responsive — faster than the Atom text editor, anyhow — Sublime Text boasts an expansive feature set you can extend with plugins. An ecosystem of Sublime Text addons are available. A quick google will turn up lots of recommended ones for you to try.

But there’s a “catch”.

Although you can download the Sublime Text editor and use it for free you’re supposed to buy a license if you plan to use it full-time. Licenses start at $70. But the ‘evaluation’ period doesn’t actually expire. This means you can, in theory, use Sublime for as long as you like, gratis!

Installing Sublime Text on Ubuntu

sublime text 3 application icon on Linux

First things first, you can download Sublime Text for Linux direct from the editor’s website. But this route has a major drawback: no auto-updates to new versions.

Windows and macOS builds automatically update to new releases as and when they’re released. The Linux version does not.

But you can install Sublime Text on Ubuntu AND get automatic updates to new releases.

How? Just add the official Sublime Text repository.

Step 1: Download the security key for the Sublime text editor repository. This step is important as it ensures any packages you download from the linked repo are what they say they are, with no nasty surprises:

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

Step 2: Add the Sublime Text stable repository:

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

If you want to run a development build of Sublime Text 3 instead of the stable version you can run this command instead of the one above:

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

Step 3: Install Sublime Text:

sudo apt update && sudo apt install sublime-text

That’s all you need to do!

After install is complete you can go launch Sublime Text from your desktop app launcher of choice. The editor will will open up and you can get stuck in exploring its great range of features.

Apps How To sublimetext2 texteditor