How to install Sublime Text 3 in Ubuntu

Sublime Text’s text editor quickly gained popularity among developers due to its good balance of simplicity and functionality. Its advantage is the ability to edit several text fragments simultaneously, powerful plugin system, plugin package manager, save and insert text fragments with hotkeys. As a result, Sublime Text can be downloaded for free and used without buying a license.

Unfortunately, this application is not in the standard repositories of many popular distros. Therefore, in order to install Sublime Text 3 on Ubuntu, you will have to use workarounds instead of regular Application Center access. This article describes several methods with varying degrees of complexity and convenience.
SSD, Smart TV set-top boxes, video game cards, PC processors, multifunction devices, antiviruses, routers, Wi-Fi amplifiers, smartphones up to 10,000 rubles

Installation via PPA

There is a user repository (PPA) where the latest version of the stable Sublime Text is always available. To connect it, type the command:

sudo add-apt-repository ppa: webupd8team / sublime-text-3

The tool automatically imports the keys necessary to verify the integrity of the packages.

After connecting a repository, you always need to update the package cache, otherwise the package manager simply won’t see the contents of that repository.

sudo apt update

Finally, the very installation of the application. The package name can be misleading – although the word installer is not an installer but a text editor itself.

sudo apt zainstaluj sublime-text-installer

Now installed Sublime Text can be launched by commanding the “subl” terminal, but is much more convenient with the Gnome 3 dashboards.

If the application is no longer needed, you can remove it with the command:

sudo apt purge sublime-text-installer

Then it is better to remove the linked PPA repository to avoid potential problems when installing and updating packages:

sudo add-apt-repository - usuń ppa: webupd8team / sublime-text-3
sudo apt update

Installation through the producer’s repository

The text editor has recently created its own deb repository that can be linked to the system in a similar way. This option looks better – it’s still better to rely on the programmers of the program than on regular users with their PPAs.

First you need to additionally install the apt-transport-https package:

sudo apt install apt-transport-https

The next step is to import the keys:

wget -qO - | sudo apt-key dodaj -

Connecting a stable repository:

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

And the standard procedure for updating the package cache and installing applications:

sudo apt update
sudo apt zainstaluj sublime-text

To uninstall, just type the command:

sudo apt wyczyść wysublimowany tekst

But you also need to remove the linked developer repository from the system. You have to do it manually. The first way is to open Application Center and enter its settings.

In the window that opens, go to the “Other software” tab, select the required (or more precisely unnecessary) repository and click the “Delete” button.

See also:

  • How to install Telegram in Ubuntu
  • Linux Mint 18.3 configuration, Part 1: Drivers and codecs
  • Installing Skype on Different Linux Distributions
  • Linux Mint 18.3 configuration, Part 2: Layout, Firefox, Chrome, console applications, paper, board
  • How to delete a file in use by a process or blocked

The second way is to delete the file you created earlier:

sudo rm /etc/apt/sources.list.d/sublime-text.list

The final step in either of these two methods is to update the package cache:

sudo apt update

Snap installation

In the latest versions of Ubuntu there is “ready” support for the Snap system – a replacement for the usual deb-repositories, free from the traditional “Linux addiction”. With Snap, you can easily install Sublime Text 3 with just one command:

sudo snap install sublime-text-3 --classic --candidate

After that, an icon of the latest stable text editor assembly will appear on the dashboard.

Removing it is just as easy, all you need to do is one command:

sudo snap usuń sublime-text-3

Manual package installation

You can simply download the Sublime Text 3 debel package and install it on click – e.g. use the same method Windows has used to install applications for decades. To download a deb package, you need to go to the appropriate page of and click the download link there.

Then you need to find the downloaded deb-package in the “Downloads” folder of your home directory and click on it with the mouse. The installation utility for Application Center packages opens. To install, click the “Install” button and wait.

A text editor launch icon appears on the desktop. To remove Sublime Text 3 if you no longer need it, type the command:

sudo apt wyczyść wysublimowany tekst

Use without installation

Finally, you don’t need to install a program to use it. You can simply download the Sublime Text 3 archive, unpack it in a convenient place, and run it right away.

To do this, go to one of the pages of the official website of the project and click on the highlighted link. The browser downloads the tar.bz2 archive to the “Downloads” folder of the home directory.

This archive must be unpacked into the current folder.

Then enter the folder displayed and move the directory “sublime_text_3” to any convenient place – for example, the application folder in your home directory (you must create this folder first). Now, to start the text editor, all you have to do is click the executable “sublime_text”.

The advantage of this method is that you don’t need to deal with repositories and the package manager. To remove the program, just delete the “sublime_text_3” folder. But there are also disadvantages:

  • the application will not be updated after new versions are released;
  • To get started, you will have to open the file manager every time;
  • There may be problems with modules and libraries.

The author also recommends:

  1. How to set up free channels on smart TV
  2. Clear Android Storage: Best Practices
  3. Laptop battery calibration
  4. What is UEFI and how is it better than BIOS?
  5. How to back up Windows 10 on your computer and why?
  6. How to speed up the loading of Windows 10
  7. If the video slows down while watching online

That’s why the tradition of installing applications only through the package manager is so stable on Linux, and it’s better not to give up that tradition unless absolutely necessary.

Leave a Reply

Your email address will not be published.

Scroll To Top