方法一:
进入网址https://www.sublimetext.com/3,按自己的系统下载相应的版本。
- OS X (10.7 or later is required)
- Windows – also available as a portable version
- Windows 64 bit – also available as a portable version
- Linux repos – also available as a 64 bit or 32 bit tarball
之后解压,进入文件目录后,在命令行输入:./sublime_text.desktop。
方法二:
1.安装GPG钥匙
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
2.确保apt和https源一起工作
sudo apt-get install apt-transport-https
3.添加sublime text存储库(分为稳定源和开发源)
稳定源9(STABLE):
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
开发源(DEV):
echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
4.更新软件资源及安装
sudo apt-get update
sudo apt-get install sublime-text