Skip to content

Instantly share code, notes, and snippets.

@tym-xqo
Last active August 29, 2015 14:20
Show Gist options
  • Save tym-xqo/28a072d23bd5b2a793f1 to your computer and use it in GitHub Desktop.
Save tym-xqo/28a072d23bd5b2a793f1 to your computer and use it in GitHub Desktop.
Install CLI psql client
#!/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