How to install psql on MacOS
Sep 28, 2023
Follow the steps below for install psql on MacOS-
- Install Homebrew.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. Run the command to install libpq package.
brew install libpq
3. Once installed, create a symlink of psql and other libpq tools to /usr/local/bin.
brew link --force libpq
4. Now, you can start using psql just by running the command in the terminal.
Thank you :)