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 | sudo gpg --dearmor -o /usr/share/keyrings/sublime.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/sublime.gpg] 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 - | sudo apt-key add - \
  && echo "deb apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list \
  && sudo apt-get update \
  && sudo apt-get install sublime-text -y


Last updated: 26th February 2023
First published: 16th August 2018