第一种方法:
Download the Sublime Text 2 & Extract it:
32位:
$ wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2
tar vxjf "Sublime Text 2.0.1.tar.bz2"
64位:
$ wget http://1128.www.qixoo.qixoo.com/c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.tar.bz2
tar vxjf "Sublime Text 2.0.1x64.tar.bz2"
Add a Sym link:
$ sudo ln -s "~apps/Sublime Text 2/sublime_text" /usr/bin/sub1
这种方法虽然可以用,但以后的更新版本不方便升级,所以推荐另一种方法。
第二种方法:
这种方法需要添加ppa源,如果不能添加请参考附录里的方案
Add the Sublime Text 2 Repository to your Synaptic Package Manager:
$ sudo add-apt-repository ppa:webupd8team/sublime-text-2
Update:
$ sudo apt-get update
Install Sublime Text 2:
$ sudo apt-get install sublime-text
If you are installing the Sublime Text 3 Beta as discussed in the update above, use this command instead of apt-get install sublime-text:
$sudo apt-get install sublime-text-installer
Create alias files (if not present):
$ sudo cp qkxue.net/usr/bin/sublime-text /usr/bin/sublime-text
$ sudo cp /usr/bin/sublime-text /usr/bin/sub1
现在就可以使用sublime text了。
附录:在debian下添加ppa
参考原文:
https://blog.anantshri.info/howto-add-ppa-in-debian
1.Download file
$ wget http://blog.anantshri.info/content/uploads/2010/09/add-apt-repository.sh.txt
2.Save this file in /
$ cp add-apt-repository.sh.txt /usr/sbin/add-apt-repository
3. Change permissions to execute
$ o+x /usr/sbin/add-apt-repository
4. Change ownership to root
$chown root:root /usr/sbin/add-apt-repository
5. Now when ever you need to execute command type
$ sudo add-apt-repository ppa:ppa-name
相关文章
- 11-28sublime text 3 or sublime text 2 安装install package control
- 11-28安装Sublime Text 2插件的方法
- 11-28【工具相关】Web-Sublime Text2-通过Package Control安装插件
- 11-28mac版sublime text2包管理器安装步骤
- 11-28Sublime Text2安装emmet
- 11-28Sublime Text2安装Package Control
- 11-28Sublime Text2 安装Package Control
- 11-28sublime text2安装package control的方法
- 11-28Sublime Text 2 - 性感无比的代码编辑器!程序员必备神器!跨平台支持Win/Mac/Linux
- 11-28[转载]Sublime Text 2 - 性感无比的代码编辑器!程序员必备神器!跨平台支持Win/Mac/Linux