How to install sublime text IDE in Ubuntu?

A sublime text editor is a lite weight IDE for all ecosystems like Windows, Mac, and Linux distro.

install sublime text IDE in Ubuntu By Rajdeep Singh
install sublime text IDE in ubuntu

Sublime is a great text editor for programmers. Sublime text IDE is a similar IDE like vscode editor.

The programmer writes code quickly in the sublime text editor because the sublime text provides a simple UI interface for beginners.

Sublime IDE is coming with a lot of functionality and language support. The most important feature is provided by sublime IDE.

  1. The new version of the subline comes with utilizing GPU's support Linux, Mac, and Windows.
  2. Sublime also supports Apple Silicon processors, Linux ARM64 architecture, and  Raspberry pi 4.
  3. Multiple tab support
  4. Sublime text editor support Typescript, jsx, and tsx file extension.
  5. Auto-complete and suggestion support in a sublime text editor.

How to install Sublime text editor in Ubuntu?

There are two ways to install a sublime text editor.

  1. Snap command
  2. Official command

Snap command

Now Ubuntu is an official support snap store Linux packages manager. With the snap package manager, you install tons of packages locally in your distro. Snap install the package with one command.

Mostly snap store command utility all ready install in Ubuntu. If it does not install, install the snap store command cli and then run the following command.

sudo snap install sublime-text --classic
Install sublime text with snap command.

Output Look like:-

Install sublime-text editor in ubuntu
Install sublime-text editor in Ubuntu

Now your command successfully runs in your terminal.

Install sublime-text on Linux | Snap Store
Get the latest version of sublime-text for Linux - A sophisticated text editor for code, markup and prose.

How to open a sublime text editor in Ubuntu?

You click on the ubuntu menu icon, scroll download, find sublime text editor, and click on it. Your sublime text editor is opening a new window in Ubuntu.

Open a sublime text editor in Ubuntu.
Open a sublime text editor in Ubuntu.

How to uninstall sublime text editor in Ubuntu?

You just run the following command and delete all configurations of sublime-text in one command.

sudo snap remove --purge  sublime-text
Remove sublime text editor with snap command 

Note

Only remove the sublime-text command when your install sublime-text editor with snap command.

Remove sublime-text editor in Ubuntu.
Remove sublime-text editor in Ubuntu.

Official command

Official command setup provides by the sublime text editor team. for download the sublime text editor, your run serval one by one command.

Install GDP key

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
Install GDP key
Install GDP Key in Ubuntu
Install GDP Key in Ubuntu

Setup HTTP sources

sudo apt-get install apt-transport-https
Set HTTP sources 

 

Install HTTP source Linux package
Install HTTP source Linux package

Select the channel or Branch to use

The Branch helps to download a sublime text editor on your laptop. I recommended downloading a stable branch on the laptop.

Stable Branch

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
install stable branch in Ubuntu
I choose a stable branch for install sublime text IDE.
I choose a stable branch for installation.

Dev branch

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

Update apt sources

Run Select channel command and after run an update to check everything is proper and update all old packages. after running sublime text install command.

sudo apt-get update
Update your Ubuntu after run sublime install
Update your Ubuntu machine with latest version
Update your Ubuntu machine with the latest version

Install Sublime Text

Update command runs successfully in the terminal, and now you install the sublime-text editor with the following command. Now your download is complete in Ubuntu and opens sublime-text like regular software.

sudo apt-get install sublime-text
Install sublime command
Finally, Run sublime text installation command
Finally, Run sublime text installation command.

How to open a sublime text editor in Ubuntu?

You click on the ubuntu menu icon, scroll download, find sublime text editor, and click on it. Your sublime text editor is opening a new window in Ubuntu.

Open Sublime-text editor in Ubuntu
Open Sublime-text editor in Ubuntu

How to delete sublime text editor?

sudo apt-get purge sublime-text
Delete sublime text IDE
Delete sublime text editor in Ubuntu.
Delete sublime text editor in Ubuntu.

References

Download - Sublime Text
official download page
Linux Package Manager Repositories – Sublime Text Documentation
official Linux installation documentation.
Installing snapd | Snapcraft documentation
Snaps are containerised software packages that are simple to create and install. They auto-update and are safe to run. And because they bundle their dependencies, they work on all major Linux systems without modification.
Install snap store CLI command 

Conclusion

I hope you download sublime text editor in Ubuntu. I recommended using the snap command to install sublime-text IDE. If you have any problem, tell in the comment section.

For more updates, click to join our subscriber list and get free benefit to lifetime access.