Install Homebrew on mac

If you’re a software developer, you’re probably very familiar with running commands in the terminal window. If you’re like me and come from a Linux background you’re probably very familiar with package managers and used them to install, remove and update software on your machine. 

If you’re also like me and have recently started developing software using an Apple Mac book Pro, you may have been wondering if Apple have some sort of Package Manager ?

What is a package manager

A package manager or package management system is a collection of software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer’s operating system in a consistent manner. A package manager deals with packages, distributions of software and data in archive files. Packages contain metadata, such as the software’s name, description of its purpose, version number, vendor, checksum, and a list of dependencies necessary for the software to run properly. Upon installation, metadata is stored in a local package database. Package managers typically maintain a database of software dependencies and version information to prevent software mismatches and missing prerequisites. They work closely with software repositories and app stores.

Homebrew is billed as the missing package manager for Mac OSX. It simplifies the task of installing terminal utilities and graphical applications using the terminal window. It is designed to look and act like a typical *nix package manager.

The first step to installing Homebrew requires you to install xcode if you haven’t already installed it.

Open the terminal window and execute the following command

Once that complete then you’re ready to install HomeBrew by running the following command in the terminal window

After installing any new software using the terminal window it’s always to refresh the window by source ~/.bash_profile or closing the window and open it again.

Once the installation is complete you can check if HomeBrew is now ready to be used on your system by running the doctor command

you should see a line in your terminal window

You can now install your desired software packages using HomeBrew.  To find out if HomeBrew has any install packages you need you can simply search by the name of your chosen application brew search packageName

For instance, I use Gimp for all graphic manipulation, so I search homebrew for the install files

If the package exists you can simply install it using brew install packageName

So to install Gimp you simply need to execute the following command

To Uninstall any packages it simply brew uninstall packageName

To check to see what packages are available and even browse to verify what contents are in them . You can browse too Braumeister

Gary Woodfine

Freelance Full Stack Developer at
Helps businesses by improving their technical proficiencies and eliminating waste from the software development pipelines.

A unique background as business owner, marketing, software development and business development ensures that he can offer the optimum business consultancy services across a wide spectrum of business challenges.

Affiliate Disclaimer

Disclosure: Please note that some of the links included in the blog posts are affiliate links, which means I will earn a commission if you decide to make a purchase.

I only include affiliate links to products, services and companies that I have personal experience and have actually used. I only recommend them because they are helpful and useful, not because of the small commissions I make if you decide to buy something.

Please do not spend any money on these products unless you feel they are relevant, suitable and will help you achieve your goals.

Buying anyone of these products and the commisions earned will not make me an overnite multi millionaire, but they will help to cover the hosting costs and compensate for the countless hours and effort I put in to create meaningful and valuable free content I provide to help others succeed.

You've also undoubtedly noticed that I also use various advertising networks - unless of of course you're using an Ad blocker, this is also an attempt to reduce my monthly deficit I experience in providing free relevant, valuable and on occassion insightful content for the benefit of others.

I only really make some money if people click on the ads, unless of course you consider 1c per 1000 impressions real money!

Bear in mind just how many impressions I need to make before I can cover my £20 hosting costs a month!

If you are using an adblocker and guilt stricken you can of course donate using any of the buttons below, but I won't be holding my breath.

Buy me a coffeeBuy me a coffee