How to install Sublime Text 4 on Rocky Linux 8

How To Install Sublime Text 4 On Rocky Linux 8

Sublime Text is a popular text editor used by developers and programmers for coding and editing source code. It is known for its clean and minimalistic interface, speed, and powerful features. Some key features of Sublime Text include:

  • Multiple Selections: Sublime Text allows you to select and edit multiple parts of your code simultaneously, making it easy to make changes across multiple lines or files.
  • Goto Anything: With Goto Anything, you can quickly navigate to files, symbols, and lines within your codebase. Simply press Ctrl+P to bring up the Goto Anything dialog and start typing.
  • Command Palette: The Command Palette provides a quick and easy way to access Sublime Text’s features and settings. Press Ctrl+Shift+P to bring up the Command Palette and start typing to search for commands and settings.
  • Customizability: Sublime Text is highly customizable and extensible. You can customize the user interface, key bindings, and preferences to suit your needs, and install plugins and packages to add new features and functionality.
  • Syntax Highlighting: Sublime Text supports syntax highlighting for many programming languages, making it easier to read and understand your code.
  • Cross-Platform: Sublime Text is available for Windows, Mac, and Linux, making it easy to use across different platforms.
  • Speed: Sublime Text is designed to be fast and responsive, even when working with large files or codebases.

Sublime Text is a paid text editor, but it offers a free trial version that can be used indefinitely with some limitations. The full version can be purchased for a one-time fee, and updates are free for life.

Sublime Text 4 Installation On Rocky Linux 8

Prerequisites

In this tutorial we will use Sublime Text Build 4113, before we proceed to the Sublime tex editor installation process, there are several prerequisites that must be met, namely :

  • A Rocky Linux 8 operating system.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • A root user access or normal user with administrative privileges.

The Sublim Text 4 installation will be consist of several steps, as mentioned below :

  1. Update Rocky Linux 8 repository
  2. Import Sublime Text 4 GPG key
  3. Install Sublime Text 4 on Rocky Linux 8
  4. Launch Sublime Text 4 on Rocky Linux 8

1. Update Rocky Linux 8 repository

We will update our system to ensure that we have the latest security patches and updates. We can do this by running the appropriate command Rocky Linux 8 system.

$ sudo dnf update

2. Import Sublime Text 4 GPG key

In this step, we will import Sublime Text 4 rpm using the following command:

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

Output :

[ramansah@otodiginet ~]$ sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
[sudo] password for ramansah:
[ramansah@otodiginet ~]$ sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
Adding repo from: https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo

3. Install Sublime Text 4 on Rocky Linux 8

After adding the Sublime Text 4 rpm to the system, then we will install this package by following command line

$ sudo dnf update
$ sudo dnf install sublime-text

Output:

[ramansah@otodiginet ~]$ sudo dnf update
Rocky Linux 8 - AppStream 1.6 kB/s | 4.8 kB 00:02 
Rocky Linux 8 - BaseOS 1.6 kB/s | 4.3 kB 00:02 
Rocky Linux 8 - Extras 1.1 kB/s | 3.5 kB 00:03 
Docker CE Stable - x86_64 11 kB/s | 3.5 kB 00:00 
MongoDB Repository 4.1 kB/s | 2.5 kB 00:00 
Sublime Text - x86_64 - Stable 646 B/s | 2.1 kB 00:03 
Dependencies resolved.
===========================================================================================================
Package Architecture Version Repository Size
===========================================================================================================
Upgrading:
firefox x86_64 91.2.0-4.el8_4 appstream 107 M
mongodb-database-tools x86_64 100.5.1-1 mongodb-org-5.0 47 M
tzdata noarch 2021c-1.el8 baseos 472 k
tzdata-java noarch 2021c-1.el8 appstream 190 k

Transaction Summary
===========================================================================================================
Upgrade 4 Packages

Total download size: 155 M
Is this ok [y/N]: y
. . .
Upgraded:
firefox-91.2.0-4.el8_4.x86_64 mongodb-database-tools-100.5.1-1.x86_64 tzdata-2021c-1.el8.noarch 
tzdata-java-2021c-1.el8.noarch
Complete!

[ramansah@otodiginet ~]$ sudo dnf install sublime-text
Last metadata expiration check: 0:18:52 ago on Mon 18 Oct 2021 03:29:48 PM WIB.
Dependencies resolved.
=================================================================================================================================
Package Architecture Version Repository Size
=================================================================================================================================
Installing:
sublime-text x86_64 4113-1 sublime-text 20 M

Transaction Summary
=================================================================================================================================
Install 1 Package

Total download size: 20 M
Installed size: 47 M
Is this ok [y/N]: y
Downloading Packages:
sublime-text-4113-1.x86_64.rpm 386 kB/s | 20 MB 00:52 
---------------------------------------------------------------------------------------------------------------------------------
Total 386 kB/s | 20 MB 00:52 
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1 
Installing : sublime-text-4113-1.x86_64 1/1 
Running scriptlet: sublime-text-4113-1.x86_64 1/1 
Verifying : sublime-text-4113-1.x86_64 1/1 
Installed products updated.

Installed:
sublime-text-4113-1.x86_64

Complete!

 

After installing Sublim Text 4, then we will verify it by submitting command line :

$ subl -version

Output :

[ramansah@otodiginet ~]$ subl -version
Sublime Text Build 4113

4. Launch Sublime Text 4 on Rocky Linux 8

After the installation is completed done, we will launch the Sublime Text on Rocky Linux system by executing the following command:

$ subl

or we can also open the Sublime Text using the graphical interface.

 

Launch Sublim text editor on Rocky linux

 

Sublim text editor on Rocky linux

 

Conclusion

In this short tutorial, we have learned how to install Sublime Text Editor on Rocky Linux 8 operating system.

 

 

(Visited 153 times, 1 visits today)

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *