Last active
August 29, 2015 14:20
-
-
Save tym-xqo/28a072d23bd5b2a793f1 to your computer and use it in GitHub Desktop.
Install CLI psql client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add add a line for the Postgres repository | |
echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/pgdg.list | |
# Import the repository signing key | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \ | |
sudo apt-key add - | |
# Update the package lists, and install psql client | |
sudo apt-get update && apt-get install postgresql-client-9.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment