20.8 C
Texas
angeloma
Senior Writer and partner

Install Sublime Text on Debian 11

Although there are many advanced text editors that we can use to write our code, not all of them are that good. Today in this post, we will talk about one of the best. In this post, you will learn how to install Sublime Text on Debian 11.

Sublime Text is a cross-platform code editor that stands out for being lightweight but very modern. It is specially designed to write without distractions, that is to say, its interface and color scheme makes our attention to the code.

Also, Sublime Text’s syntax highlighting system supports a large number of languages (C, C++, HTML, PHP, Ruby, Go, Rust, Java, Python, and many more) which allows us to use it for almost any code.

Sublime Text supports macros, snippets, and auto-completion, among other features, but it also has support for plugins which allows for much more.

- Advertisement -

Although it is not free, we can install it at no cost and the application does not lose any functionality. So we can use it both in learning environments as in other more professional ones.

Install Sublime Text on Debian 11

There are a few different ways to install Sublime Text on Debian 11. The first is by using the official repository provided by the developers.

So, open a terminal and update Debian 11.

sudo apt update
sudo apt upgrade

After that, download the GPG key from the repository for the system to recognize it as safe.

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

Next, add the Sublime Text repository to the system with the following command

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

As you can see we are using the stable channel. This is recommended if we don’t want to have any surprises. However, if you are very enthusiastic, you can join the dev channel by adding this repository instead of the stable one.

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

In any case, the next step is to update APT, the Ubuntu and Debian package manager.

sudo apt update

Now, install Sublime Text by running the following command

sudo apt-get install sublime-text
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  sublime-text
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 16.2 MB of archives.
After this operation, 49.1 MB of additional disk space will be used.

Then, you can run it from the main menu without any problem.

Sublime Text on Debian 11
Sublime Text on Debian 11

Another way to install Sublime Text on Debian 11

Alternatively, you can download a precompiled binary for Linux that works on almost all distributions. To do so, go to the project’s website, and in the download section, choose the 64-bit (x86-64) portable one

Sublime Text download page
Sublime Text download page

Then a package will be downloaded and you will have to unzip it using the file browser.

Sublime Text file and the folder generated after the decompression
Sublime Text file and the folder generated after the decompression

And finally, run it by double-clicking on the binary file named sublime_text and the application will start.

Sublime Text files included in the portable edition
Sublime Text files included in the portable edition

Deinstall Sublime Text on Debian 11

If you no longer want to use Sublime Text then the best thing to do is to uninstall it.

If you installed Sublime Text using the first method, then uninstall it by running

sudo apt remove sublime-text

And remove the added repository as well

sudo rm /etc/apt/sources.list.d/sublime-text.list

But if you installed the portable, just delete the archive and the folder that was generated after unzipping it.

That’s enough.

Conclusion

Sublime Text is an editor that will help us with writing code in many languages. It has a lot of interesting features and innovations that make it a vital tool for many people. In this post, you learned how to install it on Debian 11.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article