Can I use Homebrew on Ubuntu?

后端 未结 8 426
[愿得一人]
[愿得一人] 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:13

    As of February 2018, installing brew on Ubuntu (mine is 17.10) machine is as simple as:

    sudo apt install linuxbrew-wrapper
    

    Then, on first brew execution (just type brew --help) you will be asked for two installation options:

    me@computer:~/$ brew --help
    ==> Select the Linuxbrew installation directory
    - Enter your password to install to /home/linuxbrew/.linuxbrew (recommended)
    - Press Control-D to install to /home/me/.linuxbrew
    - Press Control-C to cancel installation
    [sudo] password for me:
    

    For recommended option type your password (if your current user is in sudo group), or, if you prefer installing all the dependencies in your own home folder, hit Ctrl+D. Enjoy.

    0 讨论(0)
  • 2021-01-30 03:16

    as of august 2020 (works for kali linux as well)

    sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
    
    export brew=/home/linuxbrew/.linuxbrew/bin
    
    test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
    
    test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
    
    test -r ~/.profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile     // for ubuntu and debian
    
    0 讨论(0)
提交回复
热议问题