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
- Sublime Docs - Linux Repositories
- DigitalOcean - How To Handle apt-key and add-apt-repository Deprecation Using gpg to Add External Repositories on Ubuntu 22.04
Last updated: 6th July 2024
First published: 16th August 2018
First published: 16th August 2018