Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu - Install Sublime 3 PPA

Run the commands below to set up the Sublime text 3 stable repo in order to install it and get automatic updates.

Ubuntu 22.04 and Later

sudo curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo gpg --dearmor -o /usr/share/keyrings/sublime.gpg \
  && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/sublime.gpg] https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list \
  && sudo apt update \
  && sudo apt install sublime-text -y

Ubuntu 20.04 and Before

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - \
  && echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list \
  && sudo apt-get update \
  && sudo apt-get install sublime-text -y

References

Last updated: 6th July 2024
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch