Linuxbrew:Linux下的Homebrew
转载自:http://chenshen.leanote.com/post/Linuxbrew%EF%BC%9ALinux%E4%B8%8B%E7%9A%84Homebrew
缘起
之前用过一段时间的Ubuntu,习惯了使用命令行来安装、更新各种软件,使用mac后发现个比官方自带App Store更好用的安装应用的工具HomeBrew;用了一段时间之后,我把几乎全部从App Store下载的软件换成了homebrew管理。
原因嘛,很简单,使用命令行后安装、更新超级方便啊,我可以一个home cu,更新全部的应用到最新,这体验太好了
过程
安装
Linuxbrew的首页是http://linuxbrew.sh,安装有个ruby脚本。
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
我用这个没有跑成功… 不就是ruby脚本吗,我干脆自己clone一份。
git clone https://github.com/Linuxbrew/brew.git ~/.linuxbrew
还得把homebrew-core克隆下来,里面有一些核心的软件安装formula,比如gcc。
git clone https://github.com/Linuxbrew/homebrew-core ~/.linuxbrew/Library/Taps/homebrew
配置一下bash_profile文件
export PATH="$HOME/.linuxbrew/bin:$PATH"export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
然后source一下就可以用了。
装软件
装一个oracle的jdkbrew install jdk
==> Downloading from http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-linux-x64.tar.gz?AuthParam=1477706348_b0b597b7531f263567737994182c7cd5 download.oracle.com:80 ... OK######################################################################## 100.0%==> CaveatsBy installing and using JDK you agree to theOracle Binary Code License Agreement for the Java SE Platform Products and JavaFXhttp://www.oracle.com/technetwork/java/javase/terms/license/index.html==> Summary /home/jash/.linuxbrew/Cellar/jdk/1.8.0-112: 1,628 files, 353.7M, built in 9 minutes 55 seconds
我还找到一个仓库里面有很多开发工具,比如smartgit, idea等等软件https://github.com/athrunsun/homebrew-linuxbinary
brew tap athrunsun/linuxbinary
蹭着同事的vpn,把要装的都给装了一个遍,哈哈哈。
brew install smartgitbrew install intellij-idea-cebrew install lanternbrew install proxychains-ngbrew install skypebrew install telegrambrew install android-studiobrew install pycharm-cebrew install sublime-textbrew install telegrambrew install unetbootinbrew install shadowsocks-go-localbrew install smart-synchronize
可惜没有看到leanote、atom、firefox等软件。
总结
用起来比apt-get爽不少,因为不用再找那些不在中央仓库的软件了,直接可以安装,以后换回linux后可以长期来使用了。
已有2位网友发表了看法:
发表评论