{"id":33809,"date":"2021-05-21T13:51:48","date_gmt":"2021-05-21T13:51:48","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=33809"},"modified":"2021-05-21T13:51:48","modified_gmt":"2021-05-21T13:51:48","slug":"sublime-text-4-released-how-to-install-it-via-official-repository","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/05\/sublime-text-4-released-how-to-install-it-via-official-repository\/","title":{"rendered":"Sublime Text 4 Released! How to Install it via Official 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=\"alignleft size-full wp-image-7399\" \/><\/p>\n<p>Sublime Text 4 was officially released a day ago. Here&#8217;s how to install it in Ubuntu 21.04, Ubuntu 20.04 via apt repository.<\/p>\n<p>Sublime Text 4 (Build 4107) feature multi-select tabs. Press and hold <i>Ctrl<\/i> (or <i>Shift<\/i>), then you can select tabs to view them side by side.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/05\/sublimetext-multitab.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/05\/sublimetext-multitab-small.gif\" alt=\"\" width=\"600\" height=\"337\" class=\"aligncenter size-large wp-image-33811\" \/><\/a><\/p>\n<p>And now it supports for auto-switching between dark and light themes to follow system appearance.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/05\/sublime-text-theme.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/05\/sublime-text-theme-600x346.jpg\" alt=\"\" width=\"600\" height=\"346\" class=\"size-large wp-image-33812\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/05\/sublime-text-theme-600x346.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/05\/sublime-text-theme-300x173.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/05\/sublime-text-theme-768x442.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/05\/sublime-text-theme.jpg 1132w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Other release highlights include:<\/p>\n<ul>\n<li>Context-aware auto complete<\/li>\n<li>ARM64 support for Linux and macOS (Apple Silicon)<\/li>\n<li>Python 3.8 support for plugins<\/li>\n<li>Built-in TypeScript, JSX and TSX support<\/li>\n<li>GPU rendering, disabled by default in Windows and Linux.<\/li>\n<li>Wayland support for Linux.<\/li>\n<\/ul>\n<p>There are also tons of other changes, see the <a href=\"https:\/\/www.sublimetext.com\/blog\/articles\/sublime-text-4\" rel=\"noopener\" target=\"_blank\">announcement<\/a> for details.<\/p>\n<h3>How to Install Sublime Text 4 in Ubuntu:<\/h3>\n<p>Open terminal from system application menu, then run following commands one by one to install Sublime Text 4 from its official apt repository.<\/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>Make sure https is supported by running 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><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/apt-sublimetext.png\"><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\" \/><\/a><\/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>Sublime Text 4 was officially released a day ago. Here&#8217;s how to install it in Ubuntu 21.04, Ubuntu 20.04 via apt repository. Sublime Text 4 (Build 4107) feature multi-select tabs. Press and hold Ctrl (or Shift), then you can select tabs to view them side by side. And now it supports for auto-switching between dark [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":33813,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[41],"class_list":["post-33809","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-sublime-text"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/33809","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=33809"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/33809\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/33813"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=33809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=33809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=33809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}