Disable pkg cache

kaltheat kaltheat at googlemail.com
Tue Sep 16 07:29:29 UTC 2014


---- On Tue, 16 Sep 2014 08:14:36 +0200 kaltheat  wrote ---- 
>---- On Mon, 15 Sep 2014 16:49:28 +0200 Matthew Seaman wrote ---- 
>>On 09/15/14 14:54, kaltheat wrote: 
>>> is it possible to disable local caching of packages? 
>>> I have my own local repo and don't want to "pollute" each server in my environment with pkg cache. 
>> 
>>Not -- the cache can't be disabled. However, your concern about 
>>'pollution' is misplaced. The package cache won't overwrite package 
>>foo-1.0.0.txz from repoA with foo-1.0.0.txz from repoB --- it knows 
>>exactly which repository each cached package came from and it can keep 
>>multiple copies from separate sources simultaneously. The only reason 
>>it would supercede any package is when it sees there is an update 
>>available in the repository catalogue with a different checksum. Even 
>>then it keeps the older version of the package n hand. 
> 
>Well, what I meant with "pollution" was: 
>I already have all packages on the package building server. I don't need packages locally on each server. 'pkg clean' would be a workaround, but it would be fine if pkg can be configured to not create a cache at all ... 
>So I need to file a feature request, right? 
> 
>>PS. If you're worried about the cache getting too big, that's not 
>>usually a problem and even if it is, 'pkg clean' will sort thing out pronto. 
> 
>To me it's a kind of aesthetic concern: I don't want to have redundancies if they aren't necessary. 
> 

Ah, they will work on it ...

https://github.com/freebsd/pkg/issues/547



More information about the freebsd-pkg mailing list