Created with ❤️ by Dr Liang Jin
bash -c "$(curl -fsSL https://raw.githubusercontent.com/drliangjin/sublime.d/master/tools/install)"
Sublime Text can be easily downloaded, installed, and managed by Homebrew, the missing package manager for macOS.
- Install Sublime Text -- stable version:
brew cask install sublime-text
- Or, install Sublime Text -- develop version:
brew tap homebrew/cask-versions
brew cask install sublime-text-dev
Since Sublime Text is a proprietary application, it is not listed in the office Ubutun package repositories by default. However, We can add Sublime Text to the package repositories. Details see Linux Package Manager Repositories.
- Install Sublime Text 3 from the offical source:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
- Or, install Sublime Text 3 via Personal Package Archives (PPA):
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer