Whatever we go with, I'd like to ensure this works for debian stable and
debian testing as well. Debian testing has  postgres 9.1 by default and 9.2
optionally.

My thinking was we might do a really basic forking for the install commands
for some daemons - "lsb_release -c" will tell us the codename and then we
can do different things depending.  This should be pretty easy, but it'd be
great to pick what we support - for debian it seems like stable and testing
are clear choices, for ubuntu I'm less certain. The last two LTSs? The last
LTS and the last release?


On Mon, Mar 18, 2013 at 10:40 PM, Kerrick Long <notifications@github.com>wrote:

> In ubuntu:
>
> > +
> > +echo "Checking for SSH key, generating one if it doesn't exist ..."
> > +  [[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
> > +
> > +echo "Copying public key to clipboard. Paste it into your Github account ..."
> > +  [[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | xclip -selection clipboard
> > +  successfully x-www-browser https://github.com/account/ssh
> > +
> > +echo "Installing GNU Compiler Collection and dependencies ..."
> > +  successfully sudo apt-get install -y autoconf automake gcc
> > +
> > +echo "Installing system libraries recommended for Ruby ..."
> > +  successfully sudo apt-get install -y libgdbm3 libgdbm-dev libffi6 libffi-dev libksba8 libksba-dev libyaml-0-2 libyaml-dev
> > +
> > +echo "Installing Postgres, a good open source relational database ..."
> > +  successfully sudo apt-get install -y postgresql postgresql-server-dev-all
>
> Hmm... Three options:
>
>    1.
>
>    Ubuntu 12.04 and 12.10 install 9.1 with this command, so we could say
>    that laptop for Ubuntu supports any Ubuntu release >= 12.04.
>    2.
>
>    I could go for the PPA<https://launchpad.net/%7Epitti/+archive/postgresql>,
>    which has packages for non-LTS releases but will not get post-12.10
>    releases, meaning it's a ticking time bomb.
>     3.
>
>    I could go for the apt repository<https://wiki.postgresql.org/wiki/Apt>,
>    which will be there indefinitely, but only gets packages for Ubuntu LTS
>    releases. However, these packages should work non-LTS releases. For
>    example, quantal can use the precise package.
>
> I'm leaning towards 3. Thoughts?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/thoughtbot/laptop/pull/78/files#r3425025>
> .
>