On Tue, Mar 07, 2006 at 02:36:57PM -0700, Scott wrote: > I've decided I'd like to try pinning. > > I read through apt_preferences(5) and the howtos on the web and I've > still got a question. > > In the following example. I got "Unofficial Multimedia Packages" from > the release file (http://ftp.nerim.net/debian-marillat/dists/sid/Release). > > Package: * > Pin: origin Unofficial Multimedia Packages > Pin: release a=sid > Pin-Priority: 500 > > However, a number of archives I have in my sources.list don't have a > release file. How else might I list them in my /etc/apt/preferences > file?
Please note: origin does not have anything to do with the Origin field in the release file! >From apt_preferences: A note of caution: the keyword used here is "origin". This should not be confused with the Origin of a distribution as specified in a Release file. What follows the "Origin:" tag in a Release file is not an Internet address but an author or vendor name, such as "Debian" or "Ximian". To access Release tags, you use release <tag_identifer>=<constraint>, e.g., "Pin: release o=Debian" constrains Release's Origin: field to "Debian". What you want is easily accomplished with: Pin: origin ftp.nerim.net The apt_preferences man page is pretty unclear on this, among other things (documentation by example - ugh). Other than the above, this is the full extent to which "origin" is documented: The general form assigns a priority to all of the package versions in a given distribution (that is, to all the versions of packages that are listed in a certain Release file) or to all of the package versions coming from a particular Internet site, as identified by the site's fully qualified domain name. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This general-form entry in the APT preferences file applies only to groups of packages. For example, the following record assigns a high priority to all package versions available from the local site. Package: * Pin: origin "" Pin-Priority: 999 The carrot-underlined section refers to the origin tag. Documentation by example really fails here, where "" is a special case. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]