Updated my shell script to install/update Sublime Text 3 and posted the result to github:
The script determines the latest available version, then downloads and installs the tarball. Tested successfully on Fedora 25. There are a few parameters that allow on to choose between DEV and STABLE, specify a specific version number, and specify the installation folder.
Usage: {script} [ OPTIONS ] TARGET BUILD
TARGET Installation target. Default target is "/opt".
BUILD Build number, e.g. 3126. If not defined uses a Sublime Text 3
web service to retrieve the latest stable or dev version number.
OPTIONS
-h, --help Displays this help message.
-d, --dev Install the dev version
-s, --stable Install the stable version (default)
The following will install the latest stable version of ST3:
cd sublime-text-3-install
chmod +x sublime-text-3.sh
./sublime-text-3.sh
This will install the latest dev version of ST3:
./sublime-text-3.sh -d
This will install a specific stable version of ST3 in a non-standard folder:
./sublime-text-3.sh -s /usr/local 3126
Uses the JSON API to determine the latest available version.