In this tutorial, you will learn how to install Sublime Text on Ubuntu 24.04 Desktop. Sublime Text is a popular and feature-rich text editor used for coding, markup, and prose. It is known for its speed, simplicity, and powerful features that enhance the coding and text editing experience.
Table of Contents
Installing Sublime Text on Ubuntu 24.04
So, how can you easily install Sublime Text on Ubuntu?
Sublime Text 4 is the current stable release as of this writing.
Install Sublime Text APT Repository on Ubuntu 24.04
Default Ubuntu 24.04 repositories do not provide Sublime Text packages.
Thus, to install Sublime Text, you need to install the Sublime Text APT repository as follows:
sudo su -
Install Sublime Text APT repository GPG signing key;
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/sublimehq.gpg
Install Sublime Text stable APT repository;
echo "deb https://download.sublimetext.com/ apt/stable/" | tee /etc/apt/sources.list.d/sublime-text.list
Install Sublime Text
Once the Sublime Text repository is in place, run system package cache update;
apt update
The install Sublime Text on Ubuntu;
apt install sublime-text
Using Sublime Text on Ubuntu 24.04
You can now launch Sublime Text on Ubuntu 24.04 from the applications menu.
And there you go! Sublime Text is ready for your use!
Remove Sublime Text on Ubuntu 24.04
If you need to remove Sublime Text, then proceed as follows;
sudo apt remove --purge --auto-remove sublime-text
Similarly, remove the repos;
sudo rm -rf /etc/apt/sources.list.d/sublime-text.list
sudo rm -rf /etc/apt/trusted.gpg.d/sublimehq.gpg
And that concludes our guide on installing Sublime Text on Ubuntu 24.04.
You can read more about Sublime Text