How do I install and use Linuxbrew?

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 its 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
Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Article is closed for comments.