How to install sublime text IDE in Raspberry pi 4?

A sublime text editor is a lite weight IDE for raspberry pi 4. you can also install sublime text editor for all ecosystems like Windows, Mac, and Linux distro.

Install sublime text IDE in Raspberry pi 4 By Rajdeep Singh
Install sublime text IDE in Raspberry pi 4 By Rajdeep Singh

You install sublime text IDE is Raspberry pi 4 with very easy command. You paste the following command setup by setup.

How to install Sublime text editor in raspberry pi 4?

There are two ways to install a sublime text editor.

  1. Snap command
  2. Official command

Snap command

Raspberry Pi 4 does not officially support snap package manager. With the snap package manager, you install some packages locally in your distro. In the snap, install the package with one command.

You do not install packages directly. Firstly you install snap store package manage in raspberry pi 4 and use the snap store command cli command and then run the following command to install a sublime text editor.

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

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 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.


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

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

  • Select the channel or Branch to use

The Branch command helps to download a sublime text editor in a stable or dev branch on your laptop. I recommended downloading a stable branch on the laptop. If the download developer branch follows, click to follow official docs.

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
Install 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 raspberry pi 4 all package 

  • 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 text editor in raspberry pi 4

How to delete sublime text editor?

sudo apt-get purge sublime-text
Delete sublime text editor in raspberry pi 4


References

Download - Sublime Text
official download page
Linux Package Manager Repositories – Sublime Text Documentation
Official Linux installation documentation.
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.
Install sublime text in Snap 
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 raspberry pi 4. I recommended using the official 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.