Sublime Text was created by Jon Skinner and was released in January 2008. It is a code editor that supports all programming languages and was built using C++ and Python.
The installation process is reasonably easy on operating systems like Windows but if you use a Linux distro like Ubuntu, you might find it quite harder.
This guide is created to help you with how to install sublime text on Ubuntu. Before you get started, it is important to ensure you have an active internet connection, you are logged in as a non-root user with Sudo access and you have your terminal opened.
1. Open Your Terminal
If you are unable to find the terminal app launcher on your ubuntu desktop, You can simply press ctrl + alt + t on your keyboard and you will have your terminal ready to use.
2. Update your system
It is always important to ensure that all your system packages are in the current stable state by running
sudo apt update && sudo apt upgrade
3. Add a GPG key
Adding the GPG key to your system’s software repository list helps to authenticate the package you will be installing and you can do that by running
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg
4. Add Sublime Repository
Sublime text installation packages are not available through the apt package manager on Ubuntu but you can add the one officially created by sublime text developers.
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
then run a system update to ensure it was added using the command:
sudo apt update -y
5. Install Sublime Text
Now, You can go ahead to install your sublime text. since you have configured the package source, you can install sublime text with the APT package manager using
sudo apt install sublime-text
6. Launch Sublime Text
Once you have your sublime text installed, You can launch it by navigating to the application launcher and clicking on it or running the following command on the terminal:
sudo ln -s /snap/sublime-text/38/opt/sublime_text/sublime_text /usr/local/bin/subl
7. Uninstall Sublime Text
If you decide to uninstall sublime text, You can use the following command
sudo apt remove sublime-text
only use the above command, if you no longer need sublime text on your device.
I hope this was very helpful. Don’t forget to leave a comment, ask your questions and share with others too.