How to Install Sublime Text 3 in Ubuntu 20.04 via Apt Repository

Last updated: July 8, 2020

Prefer installing Sublime Text via the official .deb package rather than using the containerized Snap package? Here’s how to install it in Ubuntu 20.04 the official way via the apt repository.

Open terminal either by pressing Ctrl+Alt+T on keyboard or by searching for ‘terminal’ from your system application menu. When it opens, run following commands one by one to install the latest Sublime Text 3 in Ubuntu.

1.) Download and install the GPG key by running command:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

Type user password when it prompts and hit Enter to continue.

And enable apt is set up to work with https sources via command:

sudo apt install apt-transport-https

2.) Add the official Sublime Text repository via command:

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

3.) Finally refresh system package cache and install the text editor via commands:

sudo apt update

sudo apt install sublime-text

And you’ll receive future updates along with system updates through Software Updater (Update Manager).

How to Uninstall Sublime Text:

To remove the apt repository, launch Software & Updates and go to Other Software tab, there remove the repository line.

And to remove the Sublime Text editor, simply run command:

sudo apt remove --autoremove sublime-text

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

One response to How to Install Sublime Text 3 in Ubuntu 20.04 via Apt Repository

  1. wow wery helpfull thanks man :) i just switched to ubuntu 20.04 from windows 10 and im loving it so far.I just started learnign web development its fun.stay safe