how to pin a locally compiled package?

martin whinnery martin.whinnery at sbirmc.ac.uk
Wed Jul 19 10:04:36 CEST 2006


Michael Tautschnig wrote:
>> 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
> 

Sweet - that's me sorted.

Thanks.

Mart

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the linux-fai mailing list