Linux 安装Linuxbrew

安装 Linuxbrew

Linuxbrew的首页是linuxbrew.sh

方法一:安装有个ruby脚本。

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
复制代码

方法二:clone代码。

Git clone

git clone https://github.com/Linuxbrew/brew.git ~/.linuxbrew

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的jdk  brew 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%
==> Caveats
By installing and using JDK you agree to the
Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX
http://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
复制代码
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享