Install Sublime Text on Ubuntu 24.04

|
Last Updated:
|
|

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.

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

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
Kifarunix
Linux Certified Engineer, with a passion for open-source technology and a strong understanding of Linux systems. With experience in system administration, troubleshooting, and automation, I am skilled in maintaining and optimizing Linux infrastructure.

Leave a Comment