View Full Version : Repository priority settings
JGJones
April 24th, 2005, 05:20 PM
I have quite a list of repositories that I use for my Ubuntu installation, however I would like to ensure that the Ubuntu repositories are the FIRST source for any given software so that the Ubuntu "version" would be the installed one rather than from other sources.
How do I assign priority settings to each repositories I have listed?
I have read it's something to do with creating a /etc/apt/preferences file?
Many thanks
fdoving
April 25th, 2005, 01:57 AM
I have quite a list of repositories that I use for my Ubuntu installation, however I would like to ensure that the Ubuntu repositories are the FIRST source for any given software so that the Ubuntu "version" would be the installed one rather than from other sources.
How do I assign priority settings to each repositories I have listed?
I have read it's something to do with creating a /etc/apt/preferences file?
Many thanks
Hello
What you've read about the /etc/apt/preferences file is correct.
In a simple "Apt-pinning"-setup the preferences file would look something like this:
# ----
Package: *
Pin: release a=hoary
Pin-Priority: 700
Package: *
Pin: origin no.archive.ubuntu.com
Pin-Priority: 600
# ----
The default Pin-Priority is 500, everything exceeding 500 will be prioritized.
700 will be prioritized over 600 and so on. Take a look at 'man apt_preferences' (iirc) for more details.
- Frode
fdoving
April 25th, 2005, 02:12 AM
Hello
What you've read about the /etc/apt/preferences file is correct.
In a simple "Apt-pinning"-setup the preferences file would look something like this:
# ----
Package: *
Pin: release a=hoary
Pin-Priority: 700
Package: *
Pin: origin no.archive.ubuntu.com
Pin-Priority: 600
# ----
The default Pin-Priority is 500, everything exceeding 500 will be prioritized.
700 will be prioritized over 600 and so on. Take a look at 'man apt_preferences' (iirc) for more details.
- Frode
More info:
http://jaqque.sbih.org/kplug/apt-pinning.html
This is for debian, but just change the sources and the release names to fit ubuntu.
- Frode
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.