How to Install Sublime Text 3 using Homebrew

冷暖自知 提交于 2019-12-04 07:31:37

问题


How can I use homebrew cask to install Sublime Text 3? I only see sublime text 2 in the repos. I even tried tapping homebrew/versions, but no luck.

Thanks!

EDIT: Answered by my answer below


回答1:


I originally used this page to solve the same problem in the past - however it would appear as if the sublime-text cask has been updated to now be the most recent release of Sublime Text 3. No workarounds are necessary anymore.

Installation is as simple as brew cask install sublime-text.




回答2:


brew install caskroom/cask/brew-cask
brew tap caskroom/versions
brew cask install sublime-text

Weird how I will struggle with this for days, post on StackOverflow, then figure out my own answer in 20 seconds.

[edited to reflect that the package name is now just sublime-text, not sublime-text3]




回答3:


An update

Turns out now brew cask install sublime-text installs the most up to date version (e.g. 3) by default and brew cask is now part of the standard brew-installation.




回答4:


$ brew tap caskroom/cask
$ brew install brew-cask
$ brew tap caskroom/versions
$ brew cask install sublime-text



回答5:


I did not have brew cask installed so I had to install it first,so these were the steps I followed:

brew install caskroom/cask/brew-cask
brew tap caskroom/versions
brew cask install sublime-text


来源:https://stackoverflow.com/questions/27381531/how-to-install-sublime-text-3-using-homebrew

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!