0%

Linux环境下安装Brew

Linux环境下,安装brew

需要切换git源码地址中的LinuxbrewHomebrew,后续,Linuxbrew不在更新

  1. clone源码到用户目录下

    1
    git clone https://github.com/Linuxbrew/brew.git ~/.linuxbrew
  2. 把homebrew-core克隆下来

    1
    git clone https://github.com/Linuxbrew/homebrew-core ~/.linuxbrew/Library/Taps/homebrew
  3. 设置环境变量

    1
    2
    3
    export PATH="$HOME/.linuxbrew/bin:$PATH"
    export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
    export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"