Disable pkg cache
Matthew Seaman
matthew at freebsd.org
Mon Sep 15 14:49:47 UTC 2014
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.
Eg: This is on my desktop. You can see there are 4 different packages
for xscreensaver in the cache, covering three different versions of the
port. The fourth will be due to a change in a dependency triggerring a
rebuild by poudriere.
# ls -l /var/cache/pkg/xscreensaver*
-rw-r--r-- 1 root wheel 3969844 Aug 29 00:49
/var/cache/pkg/xscreensaver-5.29_2-32189fcfe9.txz
-rw-r--r-- 1 root wheel 3971808 Aug 5 16:41
/var/cache/pkg/xscreensaver-5.29_2-45c078f215.txz
lrwxr-xr-x 1 root wheel 34 Aug 29 10:43
/var/cache/pkg/xscreensaver-5.29_2.txz@ ->
xscreensaver-5.29_2-32189fcfe9.txz
-rw-r--r-- 1 root wheel 4010252 Aug 31 00:44
/var/cache/pkg/xscreensaver-5.29_3-7cedad5fcc.txz
lrwxr-xr-x 1 root wheel 34 Sep 1 10:03
/var/cache/pkg/xscreensaver-5.29_3.txz@ ->
xscreensaver-5.29_3-7cedad5fcc.txz
-rw-r--r-- 1 root wheel 4008892 Sep 11 01:09
/var/cache/pkg/xscreensaver-5.29_4-45227659e8.txz
lrwxr-xr-x 1 root wheel 34 Sep 11 09:22
/var/cache/pkg/xscreensaver-5.29_4.txz@ ->
xscreensaver-5.29_4-45227659e8.txz
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.
Cheers,
Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20140915/a5937980/attachment.sig>
More information about the freebsd-pkg
mailing list