How to Install Sublime Text Code Editor on Ubuntu Linux

Sublime Text is source code text editor Windows, mac and Linux. It is a proprietary software and written in C++ and Python. But you can use and try it for completely free for unlimited time. Currently no enforced time limit for this software evaluation time. The latest current version is Sublime Text 4 and it was officially released a few day back. Now it supports GPU rendering, native Apple Silicon processors M1 support, Linux ARM64 support, New smart context aware auto complete, improved syntax highlighting engine and TypeScript, JSX and TSX Support. And it provides Python based plugin API with Python console.

Sublime Text

Install Sublime Text 4 on Ubuntu

Open your terminal application and install the Sublime Text GPG key. You can open it by pressing ctrl+alt+t keys.

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

Then run below command to set up the apt to work with https sources.

sudo apt-get install apt-transport-https

Then select the Sublime Text stable channel using this command.

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

And update the Update apt software sources using the below command.

sudo apt-get update

And install Sublime Text via below command.

sudo apt-get install sublime-text

If you want to install the dev channel for testing you can add it via below command after https sources and follow the remanining steps.

echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

That’s all.

Also Read:  How to Check System Uptime on Ubuntu Linux

Install Sublime Text via Snap:

You can also install it via snap, but check the version before install it. Currently its 3.2.

In terminal run below Sublime Text snap installation command.

sudo snap install sublime-text --classic

Install Sublime Text via Flatpak:

First install flatpak and run below commands to install and run Sublime Text.

flatpak install flathub com.sublimetext.three
flatpak run com.sublimetext.three

That’s all.

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Leave a Reply