Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Last active August 22, 2020 09:34
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save seanhandley/9598515 to your computer and use it in GitHub Desktop.
Save seanhandley/9598515 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
@padwan99
Copy link

Note: The instructions above are outdated, and don't work.
It's recommended always to refer to the original page for installation instructions

Thanks for posting, though!

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