From owner-freebsd-questions@FreeBSD.ORG Tue Jan 7 22:25:50 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D2BDCA1C for ; Tue, 7 Jan 2014 22:25:50 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 77CA71568 for ; Tue, 7 Jan 2014 22:25:50 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id s07MPiR3017723 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 7 Jan 2014 22:25:45 GMT (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s07MPiR3017723 Authentication-Results: smtp.infracaninophile.co.uk/s07MPiR3017723; dkim=none reason="no signature"; dkim-adsp=none Message-ID: <52CC7EDE.7020007@FreeBSD.org> Date: Tue, 07 Jan 2014 22:25:34 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: pkgng woes References: <88AA764A-5C9E-44DC-A604-C7A961983FC1@conundrum.com> In-Reply-To: <88AA764A-5C9E-44DC-A604-C7A961983FC1@conundrum.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4Pl81iDHrW6jWpnfDo5RnEDtN4xgebmhu" X-Virus-Scanned: clamav-milter 0.98 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DCC_CHECK autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2014 22:25:50 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4Pl81iDHrW6jWpnfDo5RnEDtN4xgebmhu Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 07/01/2014 22:14, Matthew Pounsett wrote: >=20 > On 2014-01-07, at 17:08 , Patrick wrote: >=20 >> I'm trying to move to pkgng on some 9.2 systems, and I'm having a hard= >> time finding some working examples of the configuration files one >> would need to pull in packages from the official FreeBSD package >> servers. Is there something obvious I'm missing? >=20 > I'm running it on a fresh 9.2-RELEASE system with no special configurat= ion at all. I'm using the default pkg.conf: >=20 > # cat /usr/local/etc/pkg.conf > packagesite: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest >=20 > # pkg > The package management tool is not yet installed on your system. > Do you want to fetch and install it now? [y/N]: y > Bootstrapping pkg please wait > _http._tcp.pkg.FreeBSD.org > Installing pkg-1.2.4_1... done > [=85] >=20 > You get some instructions that are important if you've been using the o= ld ports system, and then you're ready to use it. >=20 > I am getting warnings about the use of PACKAGESITE in the default confi= g, but it works. =20 That's because you're using some out of date settings. What you need is the following: 1) /usr/local/etc/pkg.conf -- you only need this to override global settings. Most people should *remove* this file. If you do keep it, do not define packagesite in here. 2) Instead, you need a repository specific config file. This is the default config for using pkg.freebsd.org (see: http://svnweb.freebsd.org/base/head/etc/pkg/FreeBSD.conf?view=3Dmarkup) -= - FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } Save that as /usr/local/etc/pkg/repos/FreeBSD.conf 3) You also need the package signing keys from here: http://svnweb.freebsd.org/base/head/share/keys/pkg/trusted/pkg.freebsd.or= g.2013102301?revision=3D257344&view=3Dmarkup If you want to set up your own repo, then read pkg.conf(5), which describes the pre-repo config files too. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --4Pl81iDHrW6jWpnfDo5RnEDtN4xgebmhu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSzH7oXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATQJ4P/0AhznYG6RrCihwMIpv+Y5Qw 9LA57s+mbLoJIFBXHkXr7gbwSlBB1ecNqxTp+8KSZ4GTCRuxfa75vPgtEkTHf7Wq Uk1ilXYcLpHZHflf6e6OcLPAG7miOQgEQ6UACJY1yI2T5gnfRngC8dLpcEjaY+Y0 E/pJqXmhUIK7ODWdzrosjDN8Kcl9oqSprNsC1gf/rS9rWZlf5tmGM2K0gChnSJaq YHuqfcZPrLwSVC8ke3fb5eQsyvpNxp6mTwuCHB3OCUw5Q8AHmcDNbUDNyXkhWvLi yegj03IXSW1+yRsLgTA0rc3+Z52LT9tWz3JIde+QO5W1kQ6Gb0EGe2riUwTi0xBe 0sW21ht544U4YA44wz/XhuyzrVHkjfYZRGUH1XHe2Yec4MhA4IHzPMsUnItMNmj9 Ws2SxMNHIseKjcdo7xMQ7tFlQo4gS0I8jfeHNAZSOMhcC+uDYkejcRkFGZ4/QAzv xhgx7lsj6OvmydWCBZ+tcphl+nBYcBTKJTWnOUFfko+JqFuPi1h9yK8Gv0IrOtSy jlsNLI2BDu/aYMpPHqKPLmW4hpuOujdnGaeWN1eFNAzSmYOP5SCixyC1+Iedr5Eb UCYgKbXh1oJ/++bUgt7JAeRM3ZzqomFgeChtnHr2WXiGUrlo24cPNvmXhedLfc16 PZpxB1g8v7V124X+C5cY =lEB4 -----END PGP SIGNATURE----- --4Pl81iDHrW6jWpnfDo5RnEDtN4xgebmhu--