Install Sublime Text 4 on AlmaLinux 8 [Step-by-Step]


almalinux

 

Install Sublime Text 4 on AlmaLinux

Today, in this tutorial, we are going to demonstrate how to install Sublime text 4 on AlmaLinux 8.4 Linux distribution.

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, RockyLinux, and other fedora distributions. Sublime comes with various amazing built-in vim mode features.

 

Prerequisites

  • AlmaLinux 8.4 should be installed on your machine.
  • All commands should run under sudo privileges.

 

Steps to install Sublime text 4 on AlmaLinux 8.4

The following steps help you to install the sublime text editor on AlmaLinux distribution:

 

Step 1: Import GPG key of Sublime Text 4

At the time of writing this tutorial, the sublime Text 4 is the latest version that you can install on your Linux distribution. To install the sublime text 4, import the GPG key into your Almalinux 8 system by running the below-mentioned command:

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

import gpg key for sublime text 4

 

Step 2: Add sublime text 4 stable repository on AlmaLinux 8

In this step, you will add the sublime text editor stable repository to your system by typing the following command:

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

add sublime GPG key and repo

 

Once you import the Sublime Text 4 GPG key and add the stable repository to the system, update the AlmaLinux 8 system. It will automatically refresh all local software packages to the newest version. Update the AlmaLiux 8.4 distribution by using the following command:

$ sudo dnf update

 

Step 3: Install Sublime text 4 on AlmaLinux

After refreshing all software packages list, issue the following command to install the Sublime Text 4 on AlmaLinux 8:

$ sudo dnf install sublime-text

install sublime text 4 on almalinx

Once the installation is completed, display the installed version of sublime text editor on your system by using the following command:

$ subl -version

You will see the installation version on the terminal screen as follows:

sublime text version

 

Step 4: Start Sublime Text editor on AlmaLinux 8

You can launch 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 text icon under the search bar as follows:

launch sublime text 4

Click on this displaying icon to launch the Sublime Text 4 on your system. Or 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.

launch sublime text editor

 

Uninstall or Remove Sublime Text 4 from AlmaLinux 8

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

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

Type ‘y’ and then press ‘Enter’ to complete the uninstallation of sublime text editor from AlmaLinux 8.

uninstall sublime text editor 4

The above command will remove the sublime text editor from your system.

 

Conclusion

We installed the latest version of Sublime Text 4 on the AlmaLinux 8 distribution in this article. We have seen how we can import the GPG key for the Sublime Text editor and add it to the system. Furthermore, we have also shown how to remove the sublime text editor from AlmaLinux distribution by using a single command. You can visit the official sublime text website for the latest updates. Please let us know via comments in case of an error. Thanks!

 

Deepak Prasad

Deepak Prasad

He is the founder of GoLinuxCloud and brings over a decade of expertise in Linux, Python, Go, Laravel, DevOps, Kubernetes, Git, Shell scripting, OpenShift, AWS, Networking, and Security. With extensive experience, he excels in various domains, from development to DevOps, Networking, and Security, ensuring robust and efficient solutions for diverse projects. You can connect with him on his LinkedIn profile.

Can't find what you're searching for? Let us assist you.

Enter your query below, and we'll provide instant results tailored to your needs.

If my articles on GoLinuxCloud has helped you, kindly consider buying me a coffee as a token of appreciation.

Buy GoLinuxCloud a Coffee

For any other feedbacks or questions you can send mail to admin@golinuxcloud.com

Thank You for your support!!

Leave a Comment