\uD83D\uDCD8 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
:sudo dnf install postgresql
Test Installation:
psql --version
For CentOS:
Enable PostgreSQL Repository:
sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
Install
psql
:sudo yum install postgresql14
Test Installation:
psql --version
For openSUSE:
Install
psql
:sudo zypper install postgresql
Test Installation:
psql --version
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):
sudo apt-get install postgresql-client
For Red Hat-based systems (like CentOS):
sudo yum install postgresql
For systems using the
zypper
package manager (like openSUSE):sudo zypper install postgresql
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:
psql --version
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.
\uD83D\uDCCB Related articles
Filter by label
There are no items with the selected labels at this time.