Install Sublime Text 2 in Fedora

Sublime Text is one the most popular, lightweight and smart cross-platform text and source code editor with a Python API, that is available for Linux, Windows and Mac OS X. It is really an awesome application for programming and offers a wide range of file types to manage has it supports 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 famous editor called “vim“.

By default there is no official repository available for Sublime Text 2 and there is no any magical way to install using “yum” command as you use these command frequently to install packages on your Linux systems. So, here in this article, I will show you the method to install Sublime Text.

Download Sublime Text

The latest stable version can be downloaded from Sublime Text website or you can use the following “wget” command to download the tar-file that suits you better and extract it as shown below.

## 32-bit ##
wget -c
tar vxjf Sublime\ Text\ 2.0.2.tar.bz2

## 64-bit ## 
wget -c
tar vxjf Sublime\ Text\ 2.0.2\ x64.tar.bz2

Installing Sublime Text and Running from terminal

Once unpacked, we will get a directory called “Sublime Text 2″. Inside this directory you will see a list files that is required by Sublime Text to run. For security reason, we move this folder to “/opt” location.

sudo mv Sublime\ Text\ 2 /opt/

Next, create a symbolic link to call “Sublime Text” from the command line as “sublime”. To do, create a symbolic link under “/usr/bin” as shown below.

sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime

To run it from the terminal/command line, just type “sublime” and we are good to go.