Can I use Homebrew on Ubuntu?

后端 未结 8 437
[愿得一人]
[愿得一人] 2021-01-30 02:45

I just tried to use Homebrew and Linuxbrew to install packages on my Ubuntu Server but both failed. This is how I tried to install them:

sudo apt-get install bui         


        
8条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 03:11

    The following steps worked for me:

    • Clone it from github

      git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew
      
    • Open your .bash_profile file using vi ~/.bash_profile

    • Add these lines

      export PATH="$HOME/.linuxbrew/bin:$PATH"
      export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
      export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
      
    • Then type the following lines in your terminal

      export PATH=$HOME/.linuxbrew/bin:$PATH
      hash -r
      

    Yes, it is done. Type brew in your terminal to check its existence.

提交回复
热议问题