Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save RajeshReddyM/40b3bc00b7161c21f41543e0834c5236 to your computer and use it in GitHub Desktop.

Select an option

Save RajeshReddyM/40b3bc00b7161c21f41543e0834c5236 to your computer and use it in GitHub Desktop.
How to install Sublime Text 3 on CentOS
wget http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3059_x32.tar.bz2
tar vxjf sublime_text_3_build_3059_x32.tar.bz2
sudo mv sublime_text_3/ /opt/
sudo ln -s /opt/sublime_text_3/sublime_text /usr/bin/sublime

Open the console via View > Show Console menu.

Paste this into the console:

import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

Now you can install packages with Ctrl+Shift+P (type install package then search for the package).

Recommended:

  • haml
  • better coffeescript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment