{"id":10445,"date":"2020-07-08T13:35:12","date_gmt":"2020-07-08T13:35:12","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=10445"},"modified":"2020-07-08T13:35:12","modified_gmt":"2020-07-08T13:35:12","slug":"install-sublime-text-3-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2020\/07\/install-sublime-text-3-ubuntu-20-04\/","title":{"rendered":"How to Install Sublime Text 3 in Ubuntu 20.04 via Apt Repository"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/12\/sublime-text-icon245.png\" alt=\"\" width=\"245\" height=\"250\" class=\"aligncenter size-full wp-image-7399\" \/><\/p>\n<p><b>Prefer installing Sublime Text via the official .deb package rather than using the containerized Snap package? Here&#8217;s how to install it in Ubuntu 20.04 the official way via the apt repository.<\/b><\/p>\n<p>Open terminal either by pressing <b>Ctrl+Alt+T<\/b> on keyboard or by searching for &#8216;terminal&#8217; from your system application menu. When it opens, run following commands one by one to install the latest Sublime Text 3 in Ubuntu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/sublimetext-3.png\" alt=\"\" width=\"600\" height=\"379\" class=\"aligncenter size-full wp-image-10446\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/sublimetext-3.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/sublimetext-3-450x284.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>1.)<\/b> Download and install the GPG key by running command:<\/p>\n<pre style=\"border:none;\">wget -qO - https:\/\/download.sublimetext.com\/sublimehq-pub.gpg | sudo apt-key add -<\/pre>\n<p><i>Type user password when it prompts and hit Enter to continue.<\/i><\/p>\n<p>And enable apt is set up to work with https sources via command:<\/p>\n<pre style=\"border:none;\">sudo apt install apt-transport-https<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/sublimetext-key.png\" alt=\"\" width=\"520\" height=\"125\" class=\"aligncenter size-full wp-image-10447\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/sublimetext-key.png 520w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/sublimetext-key-450x108.png 450w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<p><b>2.)<\/b> Add the official Sublime Text repository via command:<\/p>\n<pre style=\"border:none;\">echo \"deb https:\/\/download.sublimetext.com\/ apt\/stable\/\" | sudo tee \/etc\/apt\/sources.list.d\/sublime-text.list<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/sublimetext-stable-repo.png\" alt=\"\" width=\"520\" height=\"110\" class=\"aligncenter size-full wp-image-10448\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/sublimetext-stable-repo.png 520w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/sublimetext-stable-repo-450x95.png 450w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<p><b>3.)<\/b> Finally refresh system package cache and install the text editor via commands:<\/p>\n<pre style=\"border:none;\">sudo apt update\r\n\r\nsudo apt install sublime-text<\/pre>\n<p>And you&#8217;ll receive future updates along with system updates through <i>Software Updater<\/i> (Update Manager).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/apt-sublimetext.png\" alt=\"\" width=\"520\" height=\"145\" class=\"aligncenter size-full wp-image-10449\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/apt-sublimetext.png 520w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/apt-sublimetext-450x125.png 450w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<h4>How to Uninstall Sublime Text:<\/h4>\n<p>To remove the apt repository, launch <b>Software &#038; Updates<\/b> and go to <b>Other Software<\/b> tab, there remove the repository line.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/remove-sublimetext-repo.png\" alt=\"\" width=\"500\" height=\"239\" class=\"aligncenter size-full wp-image-10450\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/remove-sublimetext-repo.png 500w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/remove-sublimetext-repo-450x215.png 450w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>And to remove the Sublime Text editor, simply run command:<\/p>\n<pre style=\"border:none;\">sudo apt remove --autoremove sublime-text<\/pre>","protected":false},"excerpt":{"rendered":"<p>Prefer installing Sublime Text via the official .deb package rather than using the containerized Snap package? Here&#8217;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 &#8216;terminal&#8217; from your system application menu. When it opens, run following commands [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1517],"class_list":["post-10445","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-sublime-text-3"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=10445"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10445\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=10445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=10445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=10445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}