Sublime Text 4 Released! How to Install it via Official Repository

Last updated: May 21, 2021

Sublime Text 4 was officially released a day ago. Here’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 and light themes to follow system appearance.

Other release highlights include:

  • Context-aware auto complete
  • ARM64 support for Linux and macOS (Apple Silicon)
  • Python 3.8 support for plugins
  • Built-in TypeScript, JSX and TSX support
  • GPU rendering, disabled by default in Windows and Linux.
  • Wayland support for Linux.

There are also tons of other changes, see the announcement for details.

How to Install Sublime Text 4 in Ubuntu:

Open terminal from system application menu, then run following commands one by one to install Sublime Text 4 from its official apt repository.

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.

Make sure https is supported by running 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: Buymeacoffee | https://ko-fi.com/ubuntuhandbook1 |

3 responses to Sublime Text 4 Released! How to Install it via Official Repository

  1. thank you so much

  2. thank you so much!

  3. divyesh patel June 13, 2021 at 4:03 pm

    thank you so much bro