Differences between version 30 and predecessor to the previous major change of AptNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
| Newer page: | version 30 | Last edited on Friday, May 5, 2006 10:29:36 pm | by CraigBox | Revert |
| Older page: | version 26 | Last edited on Saturday, April 29, 2006 12:54:56 pm | by PerryLorier | Revert |
@@ -53,8 +53,20 @@
Create an <tt>/etc/apt/preferences</tt> file. A simple example may look like this:
<verbatim>
+ Package: *
+ Pin: release o=volatile.debian.net,a=sarge
+ Pin-Priority: 990
+
+ Package: *
+ Pin: release o=volatile.debian.net,a=sarge-sloppy
+ Pin-Priority: 990
+
+ Package: *
+ Pin: origin security.debian.org
+ Pin-Priority: 900
+
Package: *
Pin: release a=stable
Pin-Priority: 700
@@ -66,9 +78,11 @@
Pin: release a=unstable
Pin-Priority: 600
</verbatim>
-Note the descending values. Since Stable has the highest pin-priority, it will be installed preferentially over Testing or Unstable. Now, uncomment
stable and unstable in the AptSourcesList file at the same time. See [Apt-Pinning for Beginners | http://jaqque.sbih.org/kplug/apt-pinning.html] for more information.
+Note the descending values. This example includes the [volatile|FlavoursOfDebian] distribution as well. The priority is set higher than the security distribution, as we want to favour it over the (normally higher rating) security packages.
+
+
Since Stable has the highest pin-priority, it will be installed preferentially over Testing or Unstable. Uncomment
stable and unstable in the AptSourcesList file at the same time. See [Apt-Pinning for Beginners | http://jaqque.sbih.org/kplug/apt-pinning.html] for more information.
You can then specifically request packages from the Testing or Unstable repository by using one of the following forms:''''
<pre>
@@ -77,8 +91,10 @@
apt-get install ''package''=''version''
</pre>
<i>(If you see advice to set the <tt>APT::Default-Release</tt> preference in apt.conf(5), ignore it. See [Using APT with more than 2 sources | http://www.argon.org/~roderick/apt-pinning.html] for details.)</i>
+
+If you're worried about which version of packages apt will prefer, try <tt>apt-cache policy ''<package>''</tt>. If you're interested in developing your own /etc/apt/preferences file for pinning, look at the output of <tt>apt-cache policy</tt> with no package name for fields you can use.
!!! Private [APT] repository pico-HowTo
SysAdmin~s responsible for more than a few servers will often need to roll out customized [Package]s or security patches to many systems. A custom [APT] source makes the job much easier.
