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 http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2.tar.bz2 tar vxjf Sublime\ Text\ 2.0.2.tar.bz2 ## 64-bit ## wget -c http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2 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.