Re: priority in apt-get
In , abdelkader belahcene wrote: >I have a local repository, and declare also a remote one, I want to tell >to apt-get to install a package from a local repo, if it exists. it seems >that it begins from the remote . here is my sources: > >deb file:/home/CD1 squeeze main >deb file:/home/extra6 / >deb http://ftp.fr.debian.org/debian squeeze main non-free contrib From (man 5 sources.list): The source list is designed to support any number of active sources and a variety of source media. The file lists one source per line, with the most preferred source listed first. [...] It is important to list sources in order of preference, with the most preferred source listed first. Typically this will result in sorting by speed from fastest to slowest (CD-ROM followed by hosts on a local network, followed by distant Internet hosts, for example). So, it looks like you are mostly there. Now, that's for fetching package_version.deb and similarly for source package files. If you want to prefer the versions in a certain repository over the versions in a different repository, read (man 5 apt_preferences). This allows you to give certain repositories (by contents of Release file) or packages (by version number or repository) priority over others. When installing a package from the command-line APT will filter available package versions by priority, leaving only other with the highest priority, then choose the highest version. When satisfying a dependency, APT will narrow the list to only those package versions that satisfy the dependency before filtering based on priority. HTH -- Boyd Stephen Smith Jr. ,= ,-_-. =. b...@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/\_/ signature.asc Description: This is a digitally signed message part.
priority in apt-get
Hi, I have a local repository, and declare also a remote one, I want to tell to apt-get to install a package from a local repo, if it exists. it seems that it begins from the remote . here is my sources: deb file:/home/CD1 squeeze main deb file:/home/extra6 / deb http://ftp.fr.debian.org/debian squeeze main non-free contrib how to tell that thanks a lot best regards
Re: give cdrom source more priority in apt-get [lost the original]
This one time, at band camp, andrej hocevar said: > Unfortunately no one has responded to this by now, I too was waiting. > The apt_preferences manpage does mention pinning an origin, but > until now I couldn't succeed. In the Release.gz that comes from each source, you will find the various fields, and origin will be one of them. Use one of the fields there - you'll find origin, archive, label (which is I think what you want to pin on, in this case.) You'll find the Release.gz under /var/lib/apt/lists/ HTH, -- -- | Stephen Gran | Q: Why did the astrophysicist order | | [EMAIL PROTECTED] | three hamburgers? A: Because he was | | http://www.lobefin.net/~steve | hungry. | -- msg27185/pgp0.pgp Description: PGP signature
Re: give cdrom source more priority in apt-get [lost the original]
Unfortunately no one has responded to this by now, I too was waiting. The apt_preferences manpage does mention pinning an origin, but until now I couldn't succeed. My less attractive alternative was to add all packages on my CDs into my preferences file. What I got was an unreasonably long file, produced by this one-liner: perl -ne 'print if /^Package:/ or s/^Version: (.+)/Pin: version $1\n/;' You have to supply an argument: list of files. Maybe that can vary, I don't know, on my system it was "/var/lib/apt/lists/D*", in contrast to "/var/lib/apt/lists/f*" for ftp. Take a look at the files there and redirect the output to your new preferences file. andrej -- echo ${girl_name} > /etc/dumpdates -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
give cdrom source more priority in apt-get
Assuming $ apt-cache policy twlog twlog: Installed: (none) Candidate: 1.3-2 Version Table: 1.3-2 0 500 http://linux.cdpa.nsysu.edu.tw sid/main Packages 500 cdrom://[Debian GNU/Linux SID _Sid_ - fsn.hu unofficial i386 Binary-4 (20021010)] unstable/main Packages How can I tell apt-get install that it should try the cdrom first? Maybe the apt_preferences man page mentions it, The final selection method is by origin. This is simply the site name of the originating package files. The empty string is used for file URIs. Is that what I want to use? If so, how? Shall I make the cdrom priority 501? -- http://jidanni.org/ Taiwan(04)25854780 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]