How do I install and use Linuxbrew?

Install Linuxbrew in Run Step

You may encounter a situation where you are using one of our CircleCI convenience images and you need to utilize Homebrew/Linuxbrew and it isn't installed.

You can add the following run command before trying to install anything with brew and it will ensure it's installed and set for the rest of the job.

- run:
    name: Install and set Linuxbrew
    command: |
      sudo apt-get install build-essential curl file git
      sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"

      echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH"' >> $BASH_ENV
      echo 'export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"' >> $BASH_ENV
      echo 'export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"' >> $BASH_ENV

 

Additional Resources

Was this article helpful?
2 out of 4 found this helpful

Comments

0 comments

Article is closed for comments.