Created
November 21, 2014 18:00
-
-
Save ilyakava/481625124884a6a9dde6 to your computer and use it in GitHub Desktop.
sshing lessons into jenkins - fulcrum
This file contains hidden or 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
### sshing lessons into jenkins - fulcrum | |
# the file with the sources list | |
less /etc/apt/sources.list | |
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bkup | |
# delete mirror info and update | |
sudo sed -i 's/us-east-1\.ec2\.//g' /etc/apt/sources.list | |
sudo apt-get update | |
# search for what we need, find it, and install succeeds | |
apt-cache search libpq5 | |
sudo apt-get install libpq-dev -y | |
# if it had not succeed, then we might have wanted to switch to the older releases | |
# repo and search there | |
# sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list | |
# info about old packages can be found here: http://packages.ubuntu.com/precise/database/postgresql-8.4 | |
# to find out what distribution you have, just do: cat /etc/*-release | |
# our distribution, precise, is not listed here, perhaps its not old enough | |
# http://old-releases.ubuntu.com/ubuntu/dists/ | |
# other possible installs | |
# postgresql postgresql-contrib libpq-dev postgresql-server-dev-8.4 | |
# the installs that i needed: | |
sudo apt-get install libpq5 postgresql-common postgresql-server-dev-9.1 -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment