Site icon Ubuntu Free

How to Install Sublime Text on Ubuntu 24.04: A Complete Guide

Sublime Text official logo

Sublime Text on Linux

Ready to elevate your coding experience on Ubuntu 24.04? Sublime Text is a fast, feature-rich editor loved by developers of all levels. In this guide, we’ll walk you through installing Sublime Text using terminal commands, Snap, or Flatpak,plus, there’s a video tutorial to make it even smoother. Whether you’re new to Ubuntu or a seasoned pro, you’ll be coding in no time. Let’s dive in!

How to Install Sublime Text on Ubuntu 24.04

Choose your preferred method below, each one’s quick and simple.

Method 1: Install via Snap (Quick & Easy)

  1. Install Sublime Text:
    • sudo snap install sublime-text --classic
  2. Launch Sublime Text:

in the terminal or open it from the applications menu.

Method 2: Install via Flatpak

  1. Install Flatpak (if needed):
    • sudo apt install flatpak
  2. Add Flathub Repository:
  3. Install Sublime Text:
    • flatpak install flathub com.sublimetext.three
  4. Launch Sublime Text:
    • flatpak run com.sublimetext.three in the terminal or open it from the applications menu.

Method 3: Install via APT (Official Repository)

  1. Add Sublime Text GPG Key:
  2. Add Sublime Text Repository:
  3. Install Sublime Text:
    • sudo apt update && sudo apt install sublime-text
  4. Launch Sublime Text:
    • subl

Video Tutorial: Install Sublime Text on Ubuntu 24.04

Sublime Text Screenshots

How to uninstall Sublime via Terminal on Ubuntu

  1. Open your terminal.
  2. To uninstall Sublime Text via Snap, use this command:
    • sudo snap remove sublime-text
  3. If installed via Flatpak, use this command:
    flatpak uninstall flathub com.sublimetext.three
  4. To uninstall Sublime Text installed via APT, run this:
    • sudo apt remove sublime-text
  5. Optionally, remove any remaining configuration files:
    rm -rf ~/.config/sublime-text-3

Explore More Code Editors on Ubuntu

Love Sublime Text? Check out our other Ubuntu code editor guides:

Need Help?

Stuck on installation or have questions? Leave a comment below or contact us, we’re here to help!

Exit mobile version