How to install postgres 8.4 on Debian 5 (lenny)

Posted by Eric Bartels

Because I didn’t found this information in one place I’m writing this quick “guide” on how to install PostgreSQL 8.4.x on Debian 5.x “lenny”.

Debian lenny stable packages are bundled with Postgres 8.3.x but thanks to Debian Backports the newer Postgres version is available for lenny.

Simply do it

Add the backports-sources (/etc/apt/sources.list) and update (apt-get update)

deb http://www.backports.org/debian lenny-backports main contrib non-free

Install postgres

apt-get -t lenny-backports install postgresql-8.4

4 Responses to “How to install postgres 8.4 on Debian 5 (lenny)”

  1. And how can I activate the php function after the installation of postgres?

  2. apt-get install php5-pgsql
    /etc/init.d/apache2 restart

  3. I don’t find package postgresql-8.3-pljava-gcj
    Is it available?

  4. Sorry, for 8.3 it is available. I meant postgresql-8.4-pljava-gcj

Leave a Reply