How to Install Sublime Text 4 on AlmaLinux 8 [4 Easy Steps]

How to Install Sublime Text on AlmaLinux 8 [4 Easy Steps]

In this tutorial, we will learn about how to install Sublime Text 4 on AlmaLinux 8 using 4 easy steps.. Sublime Text software is a well-known lightweight source code editor. It was initially released in 2008 and written in Python and C++ programming languages. Most developers prefer to use this editor due to its good speed and simplicity.

The sublime text editor has an attractive user interface and offers rich community support. It supports various programming languages, code snippets, plugins and API and markup languages. The sublime text editor is a cross-platform editor, users can install this editor on almost every operating Linux system such as Ubuntu, Mint, CentOS, AlmaLinux and other Fedora distributions. Sublime comes with various amazing built-in vim mode features.

 

How to Install Sublime Text on AlmaLinux 8 [4 Easy Steps]

Also read: How to Install MariaDB in Linux [5 Easy Steps]

We can easily install the Sublime Text editor by following below given steps in order. Please make sure the below given prerequisites are met before starting the installation.

Prerequisites

  • AlmaLinux 8.4 must be installed on your machine
  • All commands must run with sudo privileges

 

Step-1: Import GPG Key

In this step,  to install the sublime text 4,  import the GPG key into your AlmaLinux 8 system by running the below command. Please note at the time of writing this tutorial, the sublime text 4 is the latest version that  can be install on Linux distribution.

$ sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

 

Step-2: Add Sublime Text 4 Repository 

In this step, add the sublime text editor stable repository in your AlmaLinux 8 system by executing the following command.

$ sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo

Once the sublime text 4 GPG key is imported and  stable repository is added  in the system, update the AlmaLinux 8 system. It will automatically refresh all local software packages to the latest version and delete the obsoleted packages. Update the AlmaLinux 8.4 distribution by using the following command.

$ sudo dnf update

 

Step-3: Install Sublime Text 4

In this step, after refreshing all software packages in the repository, execute the following command to install the sublime text 4 on AlmaLinux 8.

$ sudo dnf install sublime-text

Once the installation is completed, display the installed version of sublime text editor on your system by using the following command. This command will show the installation version on the terminal screen.

$ subl -version

 

Step-4: Start Sublime Text 4

In this step, launch the sublime text editor on your AlmaLinux system by using the application search bar. Type the ‘sublime text’ in the search bar. You will see the sublime test icon under the search bar as follows.

 

Click on this displaying icon to launch the sublime text 4 on your system. You can launch it by typing the following command on the terminal.

$ subl

 

The installed sublime text version is the unregistered copy of sublime text editor. You can use it for free but further, you need to buy a license for installing a registered sublime text editor.

 

Uninstall or Remove Sublime Text 4 from AlmaLinux 8

To uninstall and remove the sublime text editor from AlmaLinux distribution, type following command.

$ sudo dnf erase $(rpm -qa | grep sublime-text)

Type ‘y’ and  press Enter to complete the uninstallation process of sublime text editor from AlmaLinux 8 system. The above command will remove the sublime text editor from your system.

 

Summary

We have successfully installed the Sublime Text 4 on the AlmaLinux 8 distribution using the steps given in this tutorial. We have also seen how we can import the GPG key for the Sublime Text editor and add it to the system. We also covered  how to remove the sublime test editor from AlmaLinux distribution by using a single command. You can visit official sublime text editor for latest updates.

 

 

Leave a Comment