Sublime Text is a most popular, lightweight and smart cross-platform text and source code editor with a Python API, that available for Linux, Windows and Mac OS X.
It is really an awesome application for programming and offers a wide range of file types with syntax highlighting for C, C++, C#, CSS, HTML, Java, JavaScript, PHP, Groovy, LaTeX and the list goes on.
The user interface is much similar to most the famous editor called “vim“.
Recently, a new version of Sublime 3.0 released with a new UI theme, new color schemes, and icon. Some of the other features are syntax highlighting improvements and apt/yum/pacman repositories for Linux.

Sublime Text 3.0 Features
- Refreshed UI theme, including complete DPI support.
- Added Adaptive theme support, that inherits colors from the color scheme.
- Added repositories for apt, yum and pacman.
- Significant improvements to syntax highlighting.
- Added image preview, when opening new images.
- Added a preview tab for previewing files from the sidebar.
- Added Panel Switcher to the status bar.
- And many more improvements and bug fixes.
Do check out all the changes here.
Important: You can download and use evaluated Sublime Text editor for free, but a license is required for continued use.
Install Sublime Editor in Linux Systems
As I said, the recent Sublime Text 3 includes packages and package repositories for most of the major Linux distributions for an auto-upgrade mechanism.
Install Sublime On Debian/Ubuntu
To install sublime on Debian and Ubuntu, run the following commands.
$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - $ sudo apt-get install apt-transport-https $ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list $ sudo apt-get update $ sudo apt-get install sublime-text
Install Sublime on CentOS/RHEL
To install sublime on CentOS, RHEL and older version of Fedora, run the following commands.
$ sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg $ sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo $ sudo yum install sublime-text
Install Sublime on Fedora
To install sublime on a newer version of Fedora distributions, run the following commands.
$ 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 $ sudo dnf install sublime-text
For other Linux distributions, installation instructions can be found at download page of the sublime editor.
Once sublime editor installed, you can launch it from the Linux terminal as shown.
$ sublime
That’s It! If you are using any other editor, please do tell us via the comment section.
Hello, I just run the command for centos.
error message display
error: https://download.sublimetext.com/sublimehq-rpm-pub.gpg: key 1 import failed.
@Pooja,
I just tired the same command on my CentOS 7, it worked perfectly, could you try again?
Hello, I just run the command for Debian. All answers were okay, but when i try to make:
I get :
sorry I am French, it mean “command not found”
Could someone help me?
Thank you!
@Alice,
Have you followed correct installation instructions for Debian? or download binary files directly from https://www.sublimetext.com/3
Just added Sublime Text 3 to my Oracle Enterprise Linux 7 modifying these instructions. Here’s what I did:
How to add in RHEL 6. I can not start. Please tell the Process. Thanks in Advance.
Great it works for CentOS 6.5
how i can instale sublime text 3 in fedora 21 ? please help, this not ( sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime) wtf is this =((((((((
@David,
Sorry, but this is the only way to install sublime..
use this
curl https://gist.githubusercontent.com/simonewebdesign/8507139/raw/e1e7f6a302d44902dc0805eaf85344f1c4e84425/install_sublime_text.sh | sh
Ya.. thats exactly what I am doing!
So I cant start sublime text (or gedit) which has a gui window over ssh?..hmm..okay. any other workaround to make this happen??
When tried to
$ sublime
got this::::
(process:29569): Gtk-WARNING **: Locale not supported by C library.
Using the fallback ‘C’ locale.
(sublime:29569): Gtk-WARNING **: cannot open display:
@Laksmi,
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..