Sublime Text is a popular text editor used by developers to write code. It is easy to use and provides many features which can be extended with the help of plugins. In this article, we will look at how to install Sublime Text in Ubuntu. You can use these steps for any debian-based system.
How to Install Sublime Text in Ubuntu
Here are the steps to install sublime text in Ubuntu.
1. Update Ubuntu Packages
Open terminal and run the following commands to update ubuntu packages
$ sudo apt update $ sudo apt install apt-transport-https ca-certificates curl software-properties-common
Also read : How to Add & Remove User in Ubuntu
2. Import GPG Key
Run the following command to import GPG key for sublime text repostory.
$ sudo curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
Add Sublime Text repository to your system’s repository list.
sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/"Copy
Also read : How to Read & Write Files in Python
3. Install Sublime Text
Run the following command to update packages and install sublime text.
sudo apt update$
sudo apt install sublime-text
That’s it. Sublime Text will installed on your system.
You can run Sublime Text editor from terminal using subl command or by double clicking sublime icon from your Desktop (Activities->Sublime).
In this article, we have seen how to install Sublime Text Editor in Ubuntu. Here’s the official documentation to help you get started with it.
How to Uninstall Sublime Text
If you wish to uninstall sublime text, you can do so with the following command.
sudo apt remove sublime-text
Also read : How to Find Largest Files & Directories in Linux