how to pin a locally compiled package?

Michael Tautschnig tautschn at model.in.tum.de
Tue Jul 18 19:02:31 CEST 2006


> Sorry, I've got myself all confused.
> 
> I've got some samba packages which I've recompiled.
> samba-common-3.0.14a-3sarge1SBC
> 
> Now that samba-common-3.0.14a-3sarge2 is out, this is overriding my own 
> package.
> 
> Which is fine. I understand. I just need to pin the packages with a 
> priority of 1001 and apt won't upgrade them.
> 
> But it doesn't work. I'm fcopy-ing /etc/apt/preferences, and 
> post-install an aptitude upgrade downgrades to my local package. Which 
> is nice. But I want fai to prefer my local package.
> 
> I suspect I need to modify /etc/apt/preferences on the fai server - is 
> this right, and do I need to do a make-fai-nfsroot after?
> 
> I'm sure it's in the docs or on the mailing list, but sometimes, you 
> know, you just can't SEE it?
>

If I got your situation right, all you need to do is fcopy-ing
/etc/apt/preferences _before_ the actual package installation begins. You might
want to use a hook like updatebase.DEFAULT to do so.

HTH,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20060718/8de22b19/attachment.bin 


More information about the linux-fai mailing list