Skip to content
Follow
Ubuntu Linux

How to Install Sublime Text 4 on Ubuntu 24.04

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

Sublime Text 4 on Ubuntu 24.04 installs by adding the official software repository and running a quick terminal command. This fast, lightweight text editor helps you write code and edit text documents without slowing down your computer.

Advertisement

Version 4.0.0 brings faster hardware-accelerated graphics and smarter auto-complete features to speed up your work. Getting the app straight from the source gives you automatic updates and security fixes.

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

Advertisement

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

⚠️WarningOnce 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

⚠️WarningAfter adding the repository GPG key, run the command below to add or import the repository for Sublime Text 4.
Advertisement
⬛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

To install Sublime Text Ubuntu 24.04, open your terminal and run the apt package commands to add the official repository and set up the app. This method gets the latest version of the text editor on your system quickly, letting you open and use it from your desktop applications menu right after the setup finishes.

🐧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

You can uninstall Sublime Text Ubuntu by removing the application package and its associated repository files through the terminal. This complete removal process deletes the program along with its security key and software source, ensuring no leftover configuration files remain on your computer after you finish.

Advertisement
  • 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 is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

📚 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
How to Install Chatwoot on Ubuntu Linux
Ubuntu Linux How to Install Chatwoot on Ubuntu Linux
How to Install OpenLiteSpeed on Ubuntu Linux
Ubuntu Linux How to Install OpenLiteSpeed on Ubuntu Linux

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

Leave a Comment

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