Brew Mac



What is a brew/homebrew?

  1. Brew Macos
  2. Brew Macos 11
  3. Brew Machen
  4. How To Install Brew On Mac

If you used a Linux before, you had to meet apt-get on Debian/Ubuntu system or yum on Centos/Red Hat. Brew as well as these tools is a package manager that allows you to install (most of) Linux ‘s libs and tools on your Mac! You can also create your own packages to easily install them on other Macs.

Brew Macos

It can be interesting that even Microsoft noticed the values behind packages managers. They introduced it to Windows. I was really surprised when I read it.

Once you have Homebrew (a.k.a. Brew) installed on your machine you can run the following command in the Terminal to check the version. $ brew -v To update run the following command. $ brew update Alright, time to install PostgreSQL on Mac. Install PostgreSQL using Homebrew. In Terminal run the following command to install PostgreSQL on Mac. Brew City ® Mac 'N Jack Brew Bites™ Beer Battered Mac & Cheese Bites 4X2 LB Complement your beer with our fries and appetizers. Download the True Beer Food TM Pairings App. To install mas from Homebrew, paste this into your Mac terminal: brew install mas. Midnight-commander: Use the terminal as if it were Finder. Last up on our list of Homebrew apps is midnight-commander. It’s one of the most powerful apps on this list, turning your terminal window into a Finder-like file explorer.

Let’s leave Windows, and focus and MacOs/OSX. It’s worth to mention, that the following information and instructions are valid on High Sierra, Mojave, and Catalina.

[toc]

Install

So, it’s very easy. Everything that you need is the Terminal. When you ran it, copy and paste the following lines:

Update brew mac

What does that code do?

1. Fetch a shell script from the following URL: https://raw.githubusercontent.com/Homebrew/install/master/install
2. Execute it

How to use?

Brew provides a lot of commands that you can use, honestly, you should know only a few of them, which you will be using in common work. Clockworkmod driver download. Let’s start with brew install and brew update. By using it you can install some package and update it, for example:

What does it do? Install apache2 on your Mac of course.

If you just want to upgrade apache, you have to run similar command, look at this:

And that’s it! The newest version of apache2 has been installed and is ready to use.

Another useful command is brew services. Because a lot of tools work as a daemon (on the background) you can look at what is exactly working and turn it on or turn it off.

How to remove the not used library?

Sometimes we need to install some libraries, but we need them only temporarily. When we finish our job, we can do remove them from our Mac.

Brew Mac

Brew shared with you a set of different commands (aliases) to do that. Let’s stick to our apache2 example.

When you do that, it’s worth to run the following command to remove the rubbish as well.

Alternatives

They do not exist! Yes, I’m just kidding, before “the brew ages” there was something called macport. Those tools have still more available packages but brew is easier and more popular now.

Keep brew always up to date

The software contains bugs, security vulnerabilities, or can be just incompatible with your version of macOs. This is the reason why it’s worth keeping all libraries, and brew as well, updated.

To keep brew and libraries always updated, you have to use the following commands:

Brew and different versions of PHP

How to install PHP 7.4 with brew

The newest version of PHP. It includes support for PDO, MySQL, PostgreSQL, phpdbp, mbstring, soap, sqlite and much more.

How to install PHP 7.3 with brew

Be aware! Drivers versajette inkjet drivers. If you have to support a current project without a possibility to upgrade to PHP 7.4 you can install it, but active support is planned until the 6th of December 2020.

How to install PHP 7.2 with brew

Important! You shouldn’t install this version of PHP. There is no active support anymore. The security support is planned utill the 30th of November 2020.

How to use different version of PHP at the same time?

As a developer, you have many different projects. Probably each of them requires different versions of PHP. With brew it’s really easy to use all of them without switching configuration, restarting notebook, or touching any services. You need aliases.

To make sure, that your aliases are always available you have to edit file .bash_profile in your home directory. In my case it’s /Users/marcin/.bash_profile. Open this file and add there following lines:

Update brew mac

Voila, to verify is it work you have to restart terminal andy try to execute next commands.

If everything works fine, you should see something similar to:

Brew + PHP + Composer

If you are interested in extra methods of installing Composer you can check my other note. You will find there brew, docker, and direct method to install Composer.

You can also check things I didn’t know about Composer.

Brew Macos 11

Problems

Do you have a problem? Just run another command brew doctor which shows you potential problems and propositions on how to fix them.

Brew Machen

bash: brew: command not found

How To Install Brew On Mac

Have you got this message “command not found”? It means you have to install brew. How to do that? Just scroll up to section “Install”.