Menu Close

How To Install Sublime Text Using apt On Ubuntu 20.04

Sublime Text is a shareware cross-platform source code editor with a Python application programming interface (API). It natively supports many programming languages and markup languages, and functions can be added by users with plugins, typically community-built and maintained under free-software licenses.

Before you install Sublime Text you need to check if the apt-transport-https package is installed, this is a package that is used for downloading via the HTTP Secure protocol (HTTPS). Open a terminal window (press CTRL+Alt+T) and copy+paste the command below into the terminal window.

dpkg -l | grep apt-transport-https

If the package is not installed on your system use the command below to install it.

sudo apt-get install apt-transport-https

You can install a stable or a development version of Sublime Text but first you need to install the GPG key. To install the GPG key copy+paste the command below in the terminal window.

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

Now you need to add the repository to your sources.list, to do this copy+paste the code below into the terminal window:

For the stable version:

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

For the development version:

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

To reload the package list and to install Sublime Text copy+paste the command below into the terminal window.

sudo apt update && sudo apt install sublime-text -y

When the installation is finished you can close the terminal window, you can now find Sublime Text in your Applications menu.

5 1 vote
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments