Best Steps To Install Sublime Text on AlmaLinux 8/9
This tutorial guides you through the process to Install Sublime Text on AlmaLinux. Sublime Text is a sophisticated text editor favored by developers and writers alike for its speed, versatility, and extensive features. It excels at managing text editing for code, markup, and prose. Its built-in features allow users to manage syntax definitions and highlighting, handling complex elements like multi-line constructs, lazy embeds, and non-deterministic grammars with ease.
This guide, brought to you by Orcacore, provides a step-by-step approach to installing Sublime Text by adding its stable repository to your server. These instructions are applicable for both AlmaLinux 8 and AlmaLinux 9.
Please note that while Sublime Text offers an unregistered evaluation version that can be used indefinitely for free, purchasing a license unlocks the full feature set and removes occasional nag screens.
Before you begin, ensure you have access to your AlmaLinux server as a non-root user with sudo
privileges. If you need assistance with this, you can refer to our initial server setup guides:
Now, let’s proceed with the installation process to Install Sublime Text on AlmaLinux.
Step 1 – Add Sublime Text GPG Key on AlmaLinux
First, it’s crucial to add the Sublime Text GPG key to your system to ensure the authenticity of the packages you’ll be installing. Use the following command:
sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
Step 2 – Add Stable Sublime Text Repository to AlmaLinux
Next, you need to add the Sublime Text repository to your AlmaLinux system. This allows you to easily install and update Sublime Text using the dnf
package manager. To add the stable repository, execute the following command:
sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
**Output**
Adding repo from: https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
Note: A development repository for Sublime Text is also available for registered users. To add this repository, use the following command:
sudo dnf-config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo
After adding the repository, it’s a good practice to update your system’s package lists:
sudo dnf update -y
Step 3 – Command To Install Stable Sublime Text
With the repository configured, you can now install Sublime Text using the dnf
package manager:
sudo dnf install sublime-text -y
Once the installation is complete, you can verify it by checking the installed Sublime Text version:
subl -version
**Output**
Sublime Text Build 4152
Step 4 – Get Started With Sublime Text Editor
You can now launch Sublime Text from the terminal by running:
subl
Alternatively, you can find and launch Sublime Text from your desktop application menu.
Once launched, you’ll see the Sublime Text editor interface:

From within Sublime Text, you can easily add plugins and themes via the Preferences menu. Adjust the font size using the keyboard shortcuts CTRL + and CTRL –.
Sublime Text’s package manager is a powerful tool. Access it through Tools -> Command Palette, then type Install Package.
For comprehensive information and advanced usage, refer to the Sublime Text Documentation.
Summing Up
You have successfully learned to Install Sublime Text on AlmaLinux 8 and AlmaLinux 9 by adding the stable Sublime repository and launching it from the command line and desktop. Remember that this is an unregistered version and development users must register for it.
Hopefully you found this useful. Here are some other articles you might enjoy:
Plex Media Server Installation on AlmaLinux
Work With FFmpeg on Linux with Examples
Alternative Installation Methods
While the above method is a standard approach to Install Sublime Text on AlmaLinux, other options are available. Here are two alternative methods:
1. Installing via Snap Package
Snap is a universal package manager that works across many Linux distributions, including AlmaLinux. Using Snap provides a sandboxed environment for the application and simplifies the installation process. You may need to install Snapd first if it isn’t already on your system.
First, enable the crb
repository:
sudo dnf config-manager --set-enabled crb
Then install snapd
:
sudo dnf install snapd
Enable the snapd socket:
sudo systemctl enable --now snapd.socket
Finally, Install Sublime Text on AlmaLinux using snap:
sudo snap install sublime-text
This command downloads and installs Sublime Text along with its dependencies. After installation, you can launch Sublime Text directly. Snap packages are automatically updated, so you’ll always have the latest version.
2. Installing via Flatpak
Flatpak is another universal package manager, similar to Snap, that provides a sandboxed environment for applications. It also offers a way to Install Sublime Text on AlmaLinux.
First, you need to install Flatpak and add the Flathub repository, which hosts many applications, including Sublime Text.
sudo dnf install flatpak
Add the Flathub repository:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Now, Install Sublime Text on AlmaLinux using Flatpak:
flatpak install flathub com.sublimetext.three
This command installs Sublime Text from the Flathub repository. You can then launch Sublime Text using the following command:
flatpak run com.sublimetext.three
Flatpak also handles updates automatically, ensuring you stay up-to-date with the latest releases.
Both Snap and Flatpak offer convenient ways to Install Sublime Text on AlmaLinux by abstracting away the complexities of dependency management and providing automatic updates. Choose the method that best suits your preferences and system configuration.