This bash script installs the latest Sublime Text (4) version.
This script contains shell commands from Sublime Text official web site, from here.
And it installs the Stable Build (Not Dev build)
This script supports most of Linux distributions (except some niche ones like Gentoo).
After some time commands to install Sublime Text are changed by the Devs, so at some point my script will become outdated.
I don't often monitor the commands
Just use wget:
wget -N https://raw.githubusercontent.com/ide-installers/sublime-linux-installer/main/install_sublime.sh
Or use git:
git clone https://github.com/IDE-installers/sublime-linux-installer && cd sublime-linux-installer/
And execute it with bash
bash install_sublime.sh
You'll have to enter sudo password