How to Install Sublime Text 4 on Ubuntu 22.04 using Terminal

In this tutorial, i am going to show you how to install sublime text editor in ubuntu 22.04 system using terminal.

How to Install Sublime Text 4 on Ubuntu 22.04 using Terminal

Use the below given steps to install Sublime Text 4 on your ubuntu 22.04 system using terminal or command line:

Step 1 – Update the sublime repository

Run the following command on 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

Run the following command on 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

Run the following command on terminal to install sublime text in ubuntu 22.04 system and Update apt sources:

sudo apt update
sudo apt install sublime-text

Conclusion

In this tutorial, i have shown to you how to install sublime text editor in the ubuntu system using the terminal.

Recommended Linux/Ubuntu Tutorials

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *