Date: Sun, 8 Mar 2020 10:31:53 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-current@freebsd.org Subject: Re: Pkg repository is broken... Message-ID: <6298ada0-66e6-688a-a1d5-51cb93ad4400@FreeBSD.org> In-Reply-To: <20200307223800.GA20478@eureka.lemis.com> References: <966320bd-cf2a-6168-9615-16ffd7e98555@umanwizard.com> <20200302175801.GA48484@lordsith.net> <20200304041614.GA92692@eureka.lemis.com> <20200306112944.GQ33086@e.0x20.net> <20200307003855.GG85938@eureka.lemis.com> <op.0g3qf5dikndu52@sjakie> <bf582011bbc830bb3158ccfe058f7b39@waitman.net> <20200307164658.552c8548@bsd64.grem.de> <20200307223800.GA20478@eureka.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --WZIvvO1pud5wdjCgRnjSIuEKT1lUGkBZC Content-Type: multipart/mixed; boundary="TMWKdTMLo6cCCceCHpFywMcKgHKmfq0Dw" --TMWKdTMLo6cCCceCHpFywMcKgHKmfq0Dw Content-Type: text/plain; charset=windows-1252 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 07/03/2020 22:38, Greg 'groggy' Lehey wrote: >> This was only an issue on the "latest" branch. If you don't alter >> "/etc/pkg/FreeBSD.conf", you'll get packages from the "quarterly" >> branch, which fortunately wasn't affected. > No, this isn't necessarily correct. I have never modified this file, > but I ended up with a copy of /usr/src/usr.bin/pkg/FreeBSD.conf.latest > with this revision string: >=20 > # $FreeBSD: stable/11/etc/pkg/FreeBSD.conf 263937 2014-03-30 15:24:17= Z bdrewery $ >=20 > Despite the age, this appears to identical to the current version, > according to svn blame. Arguably this should be the default anyway. >=20 Best practice is *not* to modify /etc/pkg/FreeBSD.conf, but to create a supplemental file /usr/local/etc/pkg/repos/FreeBSD.conf to override any of the default settings. So, for example, this in /usr/local/etc/pkg/repos/FreeBSD.conf will switch to the 'latest' package set: ``` FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" } ``` and this will disable the FreeBSD pkg repos entirely: ``` FreeBSD: { enabled: no } ``` (presumably with an additional .../pkg/repos/foo.conf file to enable a custom local repository) The best way to confirm exactly what the resultant pkg(8) configuration comes out as is by: pkg -vv Cheers, Matthew --TMWKdTMLo6cCCceCHpFywMcKgHKmfq0Dw-- --WZIvvO1pud5wdjCgRnjSIuEKT1lUGkBZC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAl5kyZlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5 RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp 5Odc1BAAlHnjAMV9GkPX9EfctdgZ0Guu4xsWganxmQLCijHdaM74BlvoCz2fEP9i SUsGuMBmMiEQMZtSblAKimQoJ61exvw90EFYkw7B6+0KxuS/zFBemLMjVf3rN9l6 pzC235T7+huTpr23ugkfpq9z66Yi9j8Tqvz7jFwmljNXeDzYwNlzWG+eajREZzYl f8HR03+IYo60bv4e6vUMtYqsNSl8OEQVZL8VRrV6oA9zmiN3zZjGNRgLWs1N4LZP Ny1QPBBgcBFnkkBhMIY/bAIM50A7VcuD+KtWS5PahBtGrSZgBtdOVqyHmXBWiKh7 R/OULmwqVcrK4Oe91CmrAIG0iYtVdTP9jrot590ZjKHOunjac4OPfMglkldJn6fH cRG/42WB3V3XThTaFi7JlMForcCfPs8oPlWc6qSQFcJf1a7KQRNVWbuAZLtES3V8 QDRiAXrtUzgF/iUmA84BF0htBLTfF71Ct5V0MxdaYgEY1kRc20AAjWcEXI3XNdwi lf4uaJUiZiJXv0FYTXU+2HPtzBfRdIFXlxxQBoebwx4yB4UIFG1KqvVsXYGIL0XL IDtI+A0keZyDxxZyPiBB7IRWlaY6lGEaJBwk6txUPNfQMDNejURRnQtij1QumrCo PfJ6VNQy7c2jsAasutRenuHd0XzbxxEsUxhkUX/DPX3NgsdkYZ8= =jFDo -----END PGP SIGNATURE----- --WZIvvO1pud5wdjCgRnjSIuEKT1lUGkBZC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6298ada0-66e6-688a-a1d5-51cb93ad4400>