Home Brew on Windows 10
Having worked for years on a personal Apple Macbook pro, I recently had to give it away to someone.
I do have a powerful windows machine, just that it did not have brew, among other things.
Note: This page assumes you have already turned on Windows Sub system for Linux(WSL), if you have not done so, please see the page below
Installing Ubuntu 20
Go to Microsoft store and install Ubuntu, as simple as that.
https://ubuntu.com/tutorials/ubuntu-on-windows#1-overview
Un-Installing older versions of Bash for windows
I had installed bash on windows 10 many years ago.
CMD
C:\Users\suchak>wsl --list
Windows Subsystem for Linux Distributions:
Ubuntu-20.04
Legacy (Default)
Uninstalling older version
CMD
C:\Users\suchak>wsl --unregister Legacy
Check the default installation again
CMD
C:\Users\suchak>wsl --list
Windows Subsystem for Linux Distributions:
Ubuntu-20.04 (Default)
Install and Open a terminal with Terminus
I used Iterm on my Mac. Wanted something like that on windows. After looking at various versions, I decided to give Terminus a try.
Have a look at the link below and install terminus.
Install gcc
Brew needs gcc
Using a Terminal in terminus
sudo apt install gcc
Install Brew using “Homebrew-on-Linux”
Using a Terminal in terminus
Initialize Brew
Using a Terminal in terminus
brew install hello
All done!
You have Brew on windows now with a shell