How to install psql on Linux
Parent post: Setup ESE with PostgreSQL using HiveMQ Operator
Instructions
For Ubuntu and Debian-based Systems:
Update Package Lists:
sudo apt update
Install
psql
:sudo apt install postgresql-client
Test Installation:
psql --version
For Fedora:
Install
psql
:Test Installation:
For CentOS:
Enable PostgreSQL Repository:
Install
psql
:Test Installation:
For openSUSE:
Install
psql
:Test Installation:
Generic Linux Instructions:
If your distribution isn't mentioned, you can often use your package manager to install psql
. For example:
For Debian-based systems (like Ubuntu):
For Red Hat-based systems (like CentOS):
For systems using the
zypper
package manager (like openSUSE):
Remember that you might need to adjust the commands based on your Linux distribution. Once installed, you can use psql
to connect to PostgreSQL databases from the command line.
Verify the installation by running:
These instructions are general, and the package names might vary slightly based on the Linux distribution and version. Adjust the commands accordingly based on your system.
Related articles
Filter by label
There are no items with the selected labels at this time.