Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is the order of ..-backports repositories in sources.list significant?
...or does ..-backports take precedence over the standard entries, regardless of placement?

Are the two following examples effectively the same?

deb http://archive.ubuntu.com/ubuntu lucid-updates   main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse

vs.

deb http://archive.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu lucid-updates   main restricted universe multiverse
share|improve this question

2 Answers 2

up vote 7 down vote accepted

The packages in backports always have higher version numbers than the other standard repos, so effectively yes.

Traditionally, this has been correct. Because backports always have higher version numbers than the other pockets, if they are enabled, they will be preferred.

However, this has actually changed in recent Ubuntu versions. For the 10.04 (Natty) release, we changed apt so that it only installs backports if they are specifically requested (which you can do by adding the -t oneiric-backports (or similar) flag to apt-get.

(None of this is affected by the order of entries in your sources.list files; those are only used if multiple lines provide the exact same version of a package, in which case we fetch it from the first-listed one)

share|improve this answer
    
Thanks.. another piece of the jig-saw puzzle falls into place :) –  Peter.O Nov 6 '10 at 4:19

in short yes (they take precedence). once a package version is higher, it is used by default unless you change your system's preferences.

share|improve this answer
    
Oh yes, of course... it makes sense.. thanks –  Peter.O Nov 6 '10 at 4:21

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.