Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I know that packages postgresql-9.1, postgresql-9.2 etc., are packages for Postgresql database versions 9.1 and 9.2 and so on.

What I don't know is what the package postgresql is for? Does installing this package install whatever is the latest version in the current release in the distribution? If yes or not, what is its purpose?

The closest questions I could find here is this one, Why do package names contain version numbers? and it doesn't answer my question appropriately.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

The one without the version number is just a placeholder package that has a dependency on the currently supported version.

From http://packages.debian.org/squeeze/all/postgresql/filelist, the file list is just:

/usr/share/doc/postgresql/README
/usr/share/doc/postgresql/changelog.Debian.gz
/usr/share/doc/postgresql/copyright

From: http://packages.debian.org/stable/database/postgresql

This package always depends on the currently supported PostgreSQL database server version.

In other words, if you want the latest supported version, you just install "postgresql", and it will pull in the actual package for the currently supported version of the server.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.