Package Managers/Homebrew

From Adam Meola - wiki
< Package Managers
Revision as of 16:45, 27 April 2021 by Adam (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Homebrew

"The Missing Package Manager for macOS (or Linux)"

This is probably the most popular package manager for developers on Mac.

I've used it over and over to install NVM on different systems, but a massive amount of open-source software is available:

Installation

If you've used the terminal before, this will be nice and easy.

1) Go here: https://brew.sh/
2) Paste the line of code from the site into a terminal
* This uses the curl command to pull the latest installation script from Github, and executes it on your system.3) Hit Enter

Usage

Installing

1) Take a look at the list of available "casks"
https://formulae.brew.sh/cask/2) Open your terminal3) Type:
brew install NameOfTheCaskYouWantToInstall

Listing installed casks

1) Open your terminal
2) Type:
brew list

Uninstalling

1) Open your terminal
2) Type:
brew remove NameOfTheCaskYouWantToRemove

Issues

  • Sometimes applications installed with homebrew don't link properlyYou get a "not found" or a "No such file or directory"
    This is often caused by a left over path in your .bash_profile, from an installer from another app. (like MAMP)
    edit this file to fix things..bash profile