

This might take some time and it varies based on the bandwidth of your internet connection. This will fetch the latest version of Postgres from the repository and get it installed on your machine.
#Install postgresql mac m1 brew install
You can run the simple command to install Postgres as follows. Now that you have your Homebrew up and running, the next step is to install the Postgres database using Homebrew. Installing Postgres Database using Homebrew Once you have the latest version of Homebrew, you can proceed to the next step. Updates your Homebrew before performing any operations with it.
#Install postgresql mac m1 brew update
Once Homebrew is installed on your machine, the next step is to update it. Try running the command from the previous step again to initiate Homebrew. This will connect to the GitHub repository for Homebrew and get it installed on your machine. Just run the following command on your terminal to install Homebrew. However, if you find that there is no Homebrew installed on your machine, nothing to worry about.

You can open up your terminal and run theįigure 1 – Check if Homebrew is already installed on your MacOSĪs you can see in the figure above, I have already installed Homebrew on my system and it returns me a list of the services that are available to be used from Homebrew. Let us now check if you already have Homebrew installed on your machine. You can use Homebrew not only to install Postgres but also any other tools from a large library of applications already available. You can read more about Homebrew from the official website. It was first released in May 2009 and since then has been under development. Homebrew is an open-source package management solution on MacOS and Linux. Let us now proceed and check if we have Homebrew installed on our MacOS. In order to install Postgres on the local Mac using Homebrew, we need to suffice a few of the prerequisites as Personally, I believe installing the Postgres database using the command-line package manager Homebrew is much easier and clean as it automatically manages the external dependencies that we need to have in order to install Postgres on our machine. You can either install it using the command line package manager Homebrew or you can also visit the official website and get the latest downloaded-able file and start your installation. There are various ways in which you can install Postgres on your machine. Now that we have some idea about what a Postgres Database is all about, let us now go ahead and try to install it on our local machine. PostGIS is a community-driven plugin developed especially for the Postgres Database to work with location analytics

