How to Install Sublime Text Editor on Ubuntu 18.04
Suraj Joshi
Feb 02, 2024
Sublime text editor stands out as one of the top choices for text and source code editing. Software developers widely use Sublime. We can install the Sublime text editor on Ubuntu using the apt
command-line tool. We must be logged in as superuser to install the Sublime using apt
.
Install Sublime on Ubuntu
To install the sublime text editor using apt
, we execute the following steps:
-
Update the package list using the command:
sudo apt update
-
Install the dependencies to fetch packages from the web using the command:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
-
Import the GPG key of the repository using the command:
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
-
Add the repository of Sublime text editor to our system’s repository list using the command:
sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/"
-
Update the package list using the command:
sudo apt update
-
Install the Sublime text editor using the command:
sudo apt install sublime-text
In this way, we have successfully installed Sublime text editor on Ubuntu. We can now open the editor and try things out.
Author: Suraj Joshi
Suraj Joshi is a backend software engineer at Matrice.ai.
LinkedIn