1

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
2
  • How exaclty did you installed it? sudo apt-get install postgres?
    – Braiam
    Dec 26, 2013 at 23:13
  • sudo apt-get install postgresql-9.3 sudo apt-get install postgresql-contrib-9.3
    – thames
    Dec 27, 2013 at 15:35

1 Answer 1

2

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.

2
  • 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, 2013 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. Dec 29, 2013 at 2:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .