[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt_preferences: need an example



On Mon, Aug 26, 2002 at 09:49:42PM -0400, Abdul Latip wrote:
>   available?  Could someone please, send me an example of 
>   a working /etc/apt/preferences ?

Here's an excerpt from mine, which does a little different job for
me: since I only have a slow connection, I mainly want to install
from CDs -- so if a package is on them, that will be the preferred
way to install it, even if there is a newer version on the net.
So here's an entry for one package:

Package: bc
Pin: version 1.06-7

And that's it for me! Of course, I have to move that file out the 
way when I do want to upgrade.
Besides, there are some examples in that manpage. Other documents
include the apt-howto, section 3.7.

And while I'm at it: here's a question: apt-cache policy shows,
among others, a line like the next one.
"500 cdrom://[Debian GNU/Linux 3.0 beta _Woody_ - fsn.hu unofficial
i386 Binary-4" and so on. Could I, instead of filling my preferences
file with all packages, just change the priority of a certain source
to be higher that others'?

> * May I know, how to detect that a new "plugh" is needed by 
>   "xyzzy" ?
 
"apt-cache depends xyzzy" gives you the answer. Check the manpage,
it's a handy tool. If it's only about a newer version of a
dependency, then "apt-cache show xyzzy" will tell you which version
it needs as well. But you'll always note that when you try to
install a certain package, won't you? Apt know it better than you.
:) Maybe "apt-get install -s xyzzy"?

andrej

-- 
echo ${girl_name} > /etc/dumpdates



Reply to: