Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What do I need to do to update Postgres to a new minor version? i.e. 9.3.1 to 9.3.2? All the documentation gives is stop the server and install the new binaries. I need more detailed information on the steps needed to upgrade via apt-get. Unless apt doesn't perform upgrades?

Note: I installed Postgres via instructions at

Note 2: I used the shell script provided on the above url to install the postgres apt repo.

I ran the following commands:

sudo apt-get install postgresql-9.3
sudo apt-get install postgresql-contrib-9.3
share|improve this question
How exaclty did you installed it? sudo apt-get install postgres? – Braiam Dec 26 '13 at 23:13
sudo apt-get install postgresql-9.3 sudo apt-get install postgresql-contrib-9.3 – thames Dec 27 '13 at 15:35
up vote 1 down vote accepted

The instructions you are looking at are for from-source installations. When using APT, just run apt-get dist-upgrade and everything will be taken care of for you. Note that this will restart the PostgreSQL server, so don't do it when you can't have downtime.

share|improve this answer
What is the reason for "dist-upgrade" instead of "upgrade"? Does "dist-upgrade" update all packages that need to be updated? Can I specify just postgres be upgraded? – thames Dec 27 '13 at 17:23
You can use any package upgrade method you want; this was just an example. If you just want to upgrade the PostgreSQL packages, try something like apt-get install postgresql-9.3. – Peter Eisentraut Dec 29 '13 at 2:15

Your Answer


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.