Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 http://wiki.postgresql.org/wiki/Apt

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

1 Answer 1

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

 
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.