Follow
Ubuntu Linux

How to install Sublime Text 4 on Ubuntu 24.04

Richard
Written by
Richard
Jul 10, 2024 Updated Mar 20, 2026 2 min read
Sublime Text featured image
Sublime Text featured image

You install Sublime Text 4 on Ubuntu 24.04 by adding its official package repository and then using the apt package manager.

Sublime Text is a powerful and fast text editor, known for its clean interface and extensive customization options, making it a favorite for developers and writers alike.

Sublime Text 4 includes impressive enhancements like GPU rendering for snappier performance and intelligent auto-completion that anticipates your coding needs.

This process ensures you get the latest stable version, Sublime Text 4.0.0, directly from the developers.

⚡ Quick Answer

Install Sublime Text 4 on Ubuntu 24.04 by first updating your system and installing prerequisites. Then, add the Sublime Text repository GPG key and the repository itself, followed by running `sudo apt install sublime-text`.

Update and install prerequisites

Before installing Sublime Text 4, you should update and install packages that will help you install Sublime Text 4.

To do that, run the command below.

🐧Bash / Shell
sudo apt update && sudo apt upgrade
sudo apt install software-properties-common apt-transport-https curl ca-certificates

Add Sublime Text Repository GPG key

Once the Ubuntu system is updated and the required packages are installed, run the command below to add the Sublime Text repository GPG key to the Ubuntu system.

💻Code
curl -fSsL https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/sublimehq-pub.gpg > /dev/null

Add Sublime Text Repository

After adding the repository GPG key, run the command below to add or import the repository for Sublime Text 4.

Command Prompt
echo 'deb [signed-by=/usr/share/keyrings/sublimehq-pub.gpg] https://download.sublimetext.com/ apt/stable/' | sudo tee -a /etc/apt/sources.list.d/sublime-text.list

Install Sublime Text

Finally, run the command below to update the package index and install Sublime Text on Ubuntu 24.04.

🐧Bash / Shell
sudo apt update
sudo apt install sublime-text

Once installed, you can open the Sublime Text application using the command below.

💻Code
subl

Or click the Applications button on your desktop and search for the Subline Text app.

Ubuntu search for Sublime
Ubuntu search for Sublime

Install Sublime 4

After installing Sublime Text, and you want to uninstall it, use the steps below.

  • Uninstall Subline Text
  • Delete repository file
  • Delete repository GPG key
🐧Bash / Shell
sudo apt remove sublime-text
sudo rm /etc/apt/sources.list.d/sublime-text.list
sudo rm /usr/share/keyrings/sublimehq.gpg

That should do it!

Conclusion:

  • Sublime Text 4 is a powerful and highly customizable text editor designed to improve coding and general text editing productivity.
  • Its new features and enhancements, such as GPU Rendering, Tab Multi-Select, and Context-aware Auto Complete, make it a valuable tool for developers.
  • The clean interface and extensive package ecosystem contribute to its popularity among users across Windows, Mac, and Linux platforms.
  • Installing Sublime Text 4 on Ubuntu 24.04 involves updating the system, adding the repository GPG key, adding the repository, and then installing the application. Users can also easily uninstall it if needed. Sublime Text 4 is a versatile and efficient text editor for various programming languages and markup formats.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *