Sublime Text 4 is an excellent choice as your go-to program to edit code. Sublime is known for its speed, ease of use, cross-platform, and community contribution. It natively supports many programming languages and markup tongues, but users can also expand its functionality with plugins!
The Python API makes it easy; make sure you download from within Sublime, or they won’t show up in settings. Also, you can further customize and enhance it by installing additional features using package control and custom settings.
In the following tutorial, you will learn how to install Sublime Text 4 on AlmaLinux 8.
Table of Contents
Update AlmaLinux System
Update your AlmaLinux operating system to make sure all existing packages are up to date:
sudo dnf upgrade refresh --y
Import Sublime Text 4 RPM
The installation is pretty straightforward; thanks to Sublime’s RPM repository, first import the GPG key as follows.
sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
Next, you can import the stable or development repository depending on which version you wish to install.
DO NOT IMPORT BOTH RPM’S. TO CHANGE, REMOVE SUBLIME, RPM, AND RE-INSTALL.
Import Sublime Text Stable
sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
Import Sublime Text Dev
sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo
Install Sublime Text 4
With the RPM now imported, you can begin installing using the following command.
sudo dnf install sublime-text
Confirm the installation and, at the same time, check the installed build version of Sublime Text.
subl --version
Example output:
Launch Sublime Text 4
With the installation complete, you can run the text editor in a few different ways.
First, while you are in your terminal, you can use the following command.
subl
Alternatively, run the subl & command in the background to free up the terminal:
subl &
However, this isn’t practical, and you would use the following path on your desktop to open with the path: Applications > Search > Sublime Text.
Example:
The first time you launch Sublime Text, you should see the following window. Ignore the unregistered part unless you plan to use the software for commercial/enterprise use.
Remove (Uninstall) Sublime Text 4
If you no longer require sublime text, you can remove it from your system as follows:
sudo dnf autoremove sublime-text
Lastly, disable the repository for Sublime.
sudo dnf config-manager --set-disable sublime-text
For swapping, you can import stable or development versions, they will replace the current RPM for Sublime Text 4, but I would advise removing the actual application and re-install.
Comments and Conclusion
You have learned how to install Sublime Text 4 on AlmaLinux 8 with stable and development installation options.
Next, it is recommended to visit the Sublime Text Package Control, which you can directly download other features to customize your Sublime Text 4 to your requirements.
To find more information about Sublime Text, visit the official Sublime Text documentation page.