Install Brew on Ubuntu 20.04

Posted by : at

Category : ubuntu


Now my experience of Brew is mainly related to OSX, but it can be used in linux as well. To install it run the following commands:

sudo apt-get install build-essential
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> $HOME/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

To use native tools run the following:

sudo chmod o+r /etc/rancher/k3s/k3s.yaml

In order to access kubectl without using sudo run the following command:

export KUBECONFIG=/etc/rancher/k3s/k3s.yaml

About Michael Ransley
Michael Ransley

Hi, I am a Husband, Father of 3 children and Principal Data Engineer at Origin Energy. I am interested in many things - but technology is certainly one of them - both how to solve particular issues but also the effects that technology has on our society.

Website : https://michael.ransley.co

Categories
Useful Links