How to install sublime text editor on CentOS 7

To install Sublime Text Editor on CentOS 7

Sublime Text is a cross-platform source code editor developed based on Python' s Application Programming Interface (API). It supports many programming and markup languages and its functionality can be extended with the addition of surportive plugins, which are community-built and maintained under free-software licenses. In this tutorial you will be briefed about the installation of Sublime Text Editor on CentOS 7.

Features:-

  • Goto Anything," quick navigation to files, symbols, or lines
  • " Command palette" uses adaptive matching for quick keyboard invocation of arbitrary commands
  • Simultaneous editing: simultaneously make the same interactive changes to multiple selected areas
  • Python-based plugin API
  • Project-specific preferences
  • Extensive customizability via JSON settings files, including project-specific and platform-specific settings
  • Cross platform (Windows, OS X, Linux)
  • Compatible with many language grammars from TextMate

Installing Sublime Text Editor

Let us begin by downloading the rpm of Sublime Editor by using the following command.

[root@localhost Desktop]# rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

One it is downloaded, add the required repo file for sublime text editor to your machine as follows.

[root@localhost Desktop]# yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
Loaded plugins: fastestmirror, langpacks
adding repo from: https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
grabbing file https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo to /etc/yum.repos.d/sublime-text.repo
sublime-text.repo                                                             |  192 B  00:00:00     
repo saved to /etc/yum.repos.d/sublime-text.repo

Now is the time to install the Sublime Text Editor. You can do it by running the following command.

[root@localhost Desktop]# yum install sublime-text -y
Loaded plugins: fastestmirror, langpacks
base                                                                          | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                          | 4.8 kB  00:00:00     
epel                                                                          | 4.3 kB  00:00:00     
extras                                                                        | 3.4 kB  00:00:00    
.
.
.
  Installing : sublime-text-3126-1.x86_64                                                        1/1 
  Verifying  : sublime-text-3126-1.x86_64                                                        1/1 

Installed:
  sublime-text.x86_64 0:3126-1                                                                       

Complete!

Sublime Text Editor has been installed. You can launch it with the help of the following command from your terminal.

[root@localhost Desktop]# subl
Comment
vasconcelos
Oct 21 2017
It's works very nice, thank you
Add a comment
FAQ
Q
What is sublime text editor on CentOS?
A
Sublime Text is a cross-platform source code editor developed based on Python' s Application Programming Interface (API). It supports many programming and markup languages and its functionality can be extended with the addition of supportive plugins, which are community-built and maintained under free-software licenses.
Q
I'm having trouble running Sublime Text 2 on Linux ?
A
Ubuntu is the only supported distribution at the moment. I'm working to expand this as soon as possible.
Q
Can Sublime Text be run from a USB key?
A
Yes. Sublime Text may be installed to any location, however, it will read and write your settings to %APPDATA%\Sublime Text. You can change this to use a directory on the USB key, by running Sublime Text with the --data flag, for example:
Q
I prefer the look of Sublime Text 2, or otherwise find it fits my situation better, why did you get rid of it and how can I get it back?
A
There were no sources for the images in the Default theme, and they were almost all only normal resolution. For a number of years, high DPI setups (including retina Macs) were using low-res graphics, and there was no way other than creating a new master source to create them.
The new Default theme is a refresh of the old design that incorporates the general look and feel, but with a refreshed color palette, more flat aesthetic, and more compatible color choices.
Q
When did an error indicate on SSh?
A
The error message indicates that you’re starting Sublime over SSH via terminal, better login into GUI mode and try to start it..hope it will work out..