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'm trying to move from 9.1.3 to 9.1.4. I thought all I had to do was "apt-get update" and "apt-get upgrade", but that didn't work. It did install some updates, but that was only for 9.1.3. Any ideas what I'm doing wrong here?

share|improve this question
add comment

1 Answer

apt-get will upgrade to the packages available in the repository from the source that apt is configured to use.

The postgresql-9.1 package is version 9.1.4 in the squeeze-backports repository.

Add the following to /etc/apt/sources.list.d/backports.sources.list

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

Then run:

apt-get update && apt-get install postgresql-9.1

If you're Wheezy, 9.1 will already be available. If you're running a release prior to Squeeze then you should first concern yourself with upgrading to Squeeze.

share|improve this answer
    
You will want to pass -t squeeze-backports to that install command. Backports priority is set to 100 by default. See backports-master.debian.org/Instructions –  Faheem Mitha Aug 14 '12 at 6:02
    
@FaheemMitha: Normally yes, but in this case it's not necessary because squeeze doesn't have a postgresql-9.1 package. It's only available in backports and it's being requested explicitly so the backport is automatically selected. –  bahamat Aug 14 '12 at 9:06
    
Sure, but the OP probably doesn't realise that this is a special case. In general it is preferable to quote commands in the form in which they will always work. –  Faheem Mitha Aug 14 '12 at 9:09
add comment

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.