Date: Mon, 15 Sep 2014 15:49:28 +0100 From: Matthew Seaman <matthew@freebsd.org> To: freebsd-pkg@freebsd.org Subject: Re: Disable pkg cache Message-ID: <5416FC78.4040104@freebsd.org> In-Reply-To: <148799807a5.d2f58d1b193594.6509254985329847815@googlemail.com> References: <148799807a5.d2f58d1b193594.6509254985329847815@googlemail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JcH25AAv64ILnArHKecCOv9k9GsGnTFkq Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 pron= to. Cheers, Matthew --JcH25AAv64ILnArHKecCOv9k9GsGnTFkq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJUFvx+XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnbK8P/0Bqwn/kf+4kEF+1ZGdPvqcZ 4OBz4vYxHciNAtEbF+CNYly+KaDoB3pgv8DbRLrHUBg+qGZvDPJ/md9huNk/dmWC tQjIycTfEo9axhklDDeX/6MS4Ax0q6IrLuVFLoqWdD6FR6SJ/CKulGKhK2HSBCWR 7A8Vlaj/Eu9DCHBiaJc6H/tuL2CXgJZoUNbSuTbiTERY2+5UtVI/kRRUl9Zz09f5 Fv+6qj8hfxL5U0a1SHQipBtYQKaKLuqvL/zly0HCWb8K4jwNxrhCOUiXz0V1dwln 58YgE4OrU6cy0CIpoOLOV70OnFU4nW7iqmp6pzozfIygcSjU4TFNYZhPAOvtPTLD 0RYJmBPMfopMoFUpmZEG5Txlgr2OymF5paQxLW570abp3bg4EYCjvxNHa6X972pg 1+g+U3tfXHaIg2qIgoZTw3IKkuioS6My0htGXy+5Fs1o27QAjhMNDSlmgSOes85f wFf7HP8+nlRfM3EBkOy1+vO8wsVpcLILzWoauKKKzRqJgWvJewm8OuFLMUt7Ajw2 mBR7cW+ZsMU9hCiqCAWTKv9GVfgWbaRK+11rMl37FHVnSbY3BfavIf608G+5wyn+ xrj/CoF3+MaYuUoS5otMsSV74NVrZ/+VMXFZhPc1s2iyjBvpMsSYyORYP89nfkEB zB4NoYppaJOGxbwopdzi =hBnm -----END PGP SIGNATURE----- --JcH25AAv64ILnArHKecCOv9k9GsGnTFkq--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5416FC78.4040104>