Sublime Text is a popular text editor loved by developers for its speed, simplicity, and powerful features. This editor supports a wide range of programming languages and markup formats. Sublime Text is a cross-platform application, offering compatibility with a range of operating systems such as Windows, Linux, and Mac. This tutorial shows how to install Sublime Text on Ubuntu 26.04.
Install Sublime Text
Add the official Sublime Text repository and signing key:
sudo tee /etc/apt/sources.list.d/sublime-text.sources >/dev/null <<EOF
Types: deb
URIs: https://download.sublimetext.com
Suites: apt/stable/
Signed-By:
$(curl -sS https://download.sublimetext.com/sublimehq-pub.gpg | sed "s/^/ /")
EOF
Update the package lists to ensure that Ubuntu knows about the packages available in the new repository:
sudo apt update
Finally, install Sublime Text:
sudo apt install -y sublime-text
Testing Sublime Text
Once the installation is complete, you can launch Sublime Text from the application menu or by running the following command in the terminal:
subl
Uninstall Sublime Text
If you want to completely remove Sublime Text, execute the following command:
sudo apt purge --autoremove -y sublime-text
Remove the repository configuration file:
sudo rm -rf /etc/apt/sources.list.d/sublime-text.sources
If you wish to erase all user data associated with Sublime Text, you can delete the Sublime Text configuration directory:
rm -rf ~/.config/sublime-text
Leave a Comment
Cancel reply