Agile Otaku

Install Sublime Text 2 in Linux Mint

Installing Sublime Text 2 in Linux Mint is like what you would do in Ubuntu

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text-2

Updating your Sublime Text 2 to the latest build

If you are in the cutting edge, following the latest build of Sublime Text is preferable. Unfortunately in Linux Mint , updating is not as straightforward as in MacOs. "apt-get install" is the culprit.

Usually, to use an updateable Sublime version in my machine, I dont use "apt-get install". If you have a previous installation of sublime-text-2 in your machine, you have to remove it. Using "apt-get" do the following.

sudo apt-get remove --purge sublime-text-2

Now that sublime-text-2 has been cleared away from your system, lets install the updateable version.

cd ~/temp
tar -xzvf [version].tar.bz2
cd [version]

Where [version] is the latest version of Sublime Text 2. Http address might change in the future so watch out!

Now modify your ~/.bash_profile by adding the current folder to the $PATH variable

echo "export PATH=$PATH:`pwd`">>~/.bash_profile

Next, either restart your machine or source the bash_profile

source ~/.bash_profile

Congratulations. Sublime should now use the latest sublime build.