Command line install sublime text editor in ubuntu; In this tutorial, you will learn how to install sublime text editor in ubuntu 22.04 & 20.04 system using terminal.
How to Install Sublime 4 Text in Ubuntu 20.04 | 22.04 Terminal
Steps to install Sublime Text 4 on your ubuntu 20.04 / 22.04 system using terminal or command line:
- Step 1 – Ubuntu Update System Packages
- Step 2 – Download and install related dependencies
- Step 3 – Add the Sublime repository
- Step 4 – Install Sublime 4 Text Ubuntu
Step 1 – Ubuntu Update System Packages
In this step, execute the following command on your terminal to update Apt package list or Install dependencies required to get packages from https sources:
sudo apt update
Step 2 – Download and install related dependencies
In this step, execute the following command on your terminal to install the supporting packages first. Type in the following command:
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
Step 3 – Add the Sublime repository
In this step, Add the sublime text APT repository to your software’s, software repository list by executing the following command on terminal:
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/"
Step 4 – Install Sublime 4 Text Ubuntu
In this last step, you need to execute the following command on terminal to install sublime text 4 in your ubuntu system and Update apt sources:
sudo apt update sudo apt install sublime-text
Conclusion
In this tutorial, you have learned how to install sublime text editor in the ubuntu system using the terminal.
That’s it. Sublime text has been download on your Ubuntu 20.04 / 22.04 system.