Why you need a Package Manager for MacOS

Why you need a Package Manager for MacOS

Play this article


#What is Homebrew? Homebrew is the package manager for MacOS that you never knew you needed. It makes installing packages as easy as just typing out

brew install wget

#How to install Homebrew If you are wanting to get started using Homebrew. Just open up your terminal and run the following command

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Homebrew will install packages to their own directory and then symlink that file into /usr/local (on macOS Intel)

If you have an M1 Macbook (Like me), there is one more step to follow. Since on the M1, Homebrew files are installed into the /opt/homebrew folder. But this folder is not part of the default $PATH. Follow Homebrew’s advice and create a ~/.zprofile file which contains a command which sets up Homebrew. Homebrew shows instructions at the end of the installation process.

Once you have this installed. You can start out by installing a fun package called Cowsay

Run the command

brew install cowsay

Once you have it installed. You can run

cowsay 'Hello World!'

You should get an output like this cow.png

There are multiple ways to configure Cowsay. It is just a fun little package to use. You can type out cowsay -help for the commands you can use. Or you can visit the repo Cowsay to see the characters you can use.

There are also numerous other packages you can install using Homebrew. You can see all those packages here: Homebrew Formulae

Well Congratulations! You have now installed Homebrew and have a fun to impress your friends and family on the terminal.

Until next time here is a fun fortune for the road


(Curious how I created that? Subscribe to my newsletter to see when I release a post about it).