In this tutorial, we will show you how to install Sublime Text on CentOS 8. For those of you who didn’t know, Sublime Text 3 is a popular, cross-platform, lightweight source code editor with an amazing working environment. It has many built-in multifunction and Vim mode features. It natively supports many programming and markup languages. Sublime text has a built-in Python API available in Windows, Linux, and Mac OS.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘
sudo‘ to the commands to get root privileges. I will show you through the step-by-step installation of Sublime Text 3 on a CentOS 8.
- A server running one of the following operating systems: CentOS 8.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
non-root sudo useror access to the
root user. We recommend acting as a
non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.
Install Sublime Text on CentOS 8
Step 1. First, let’s start by ensuring your system is up-to-date.
sudo dnf clean all sudo dnf update
Step 2. Installing Sublime Text on CentOS.
Start by importing the Sublime Text 3 GPG key:
sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
After importing the key. You will add a yum repository on the CentOS system:
sudo wget -P /etc/yum.repos.d/ https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
Finally, run the following command to install Sublime Text:
sudo dnf install sublime-text
Step 3. Accessing Sublime Text.
Once successfully installed, launch sublime text editor 3.0 using terminal run the following command on terminal:
Congratulations! You have successfully installed Sublime Text. Thanks for using this tutorial for installing Sublime Text 3 on CentOS 8 system. For additional help or useful information, we recommend you to check the official Sublime Text website.