From owner-freebsd-pkg@FreeBSD.ORG Wed May 7 14:58:55 2014 Return-Path: Delivered-To: freebsd-pkg@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 DC060E82 for ; Wed, 7 May 2014 14:58:55 +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)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8452D1CA for ; Wed, 7 May 2014 14:58:55 +0000 (UTC) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.8/8.14.8) with ESMTP id s47EwoRp024918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 7 May 2014 15:58:51 +0100 (BST) (envelope-from matthew@freebsd.org) Authentication-Results: lucid-nonsense.infracaninophile.co.uk; dmarc=none header.from=freebsd.org DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s47EwoRp024918 Authentication-Results: smtp.infracaninophile.co.uk/s47EwoRp024918; dkim=none reason="no signature"; dkim-adsp=none X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Message-ID: <536A4A1D.8020204@freebsd.org> Date: Wed, 07 May 2014 15:58:37 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-pkg@freebsd.org Subject: Re: bootstrapping /usr/sbin/pkg inside a jail References: <5369407E.9060008@a1poweruser.com> <53694241.6050207@my.hennepintech.edu> <536A3E10.4030902@a1poweruser.com> <536A42E5.4070608@wasikowski.net> In-Reply-To: <536A42E5.4070608@wasikowski.net> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rlFRuOVn7C6R5UUvdkfWL1sa5eXcfJOS8" X-Virus-Scanned: clamav-milter 0.98.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2014 14:58:55 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rlFRuOVn7C6R5UUvdkfWL1sa5eXcfJOS8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/07/14 15:27, =C5=81ukasz W=C4=85sikowski wrote: > W dniu 2014-05-07 16:07, Fbsd8 pisze: >=20 >> It's not a question of getting to the internet which ping shows works.= >> Its that going to >> ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-current/Latest/ >> using a browser or ftp shows that directory path does not exist. >> >> So it all boils down to, where is pkg program getting the url from and= >> why is there difference between host and jail? >> >> This is more a pkgng question then a jail question. >=20 > pkg(8) use location from /usr/local/etc/pkg.conf (before 1.2.x IIRC) an= d > from /usr/local/etc/pkg/repos/ directory in 1.2.x and newer. >=20 That's true of the actual pkg(8) program. The /usr/sbin/pkg bootstrapping thinger works a bit differently. It depends on what version of FreeBSD you're bootstrapping on. Certainly on 10.x or above it uses the same URL as in /etc/pkg/FreeBSD.conf: http://pkg.FreeBSD.org/${ABI}/latest. /usr/sbin/pkg had a different default in older versions of the OS, and you'ld either have to write a /usr/local/etc/pkg.conf or set PACKAGESITE in the environment -- irrespective of whether the actual pkg(8) you were installing would take any notice of PACKAGESITE itself. Basically: set PACKAGESITE in the environment to tell /usr/sbin/pkg where to get the real pkg fron on 9.x or earlier; otherwise just use the built-in default on 10.x or above. Once you've got pkg(8) installed you can write your own repo.conf setup for everything else should you want to use a custom repo. Don't create a /usr/local/etc/pkg.conf unless you specifically want to override any of the default global settings. Cheers, Matthew --rlFRuOVn7C6R5UUvdkfWL1sa5eXcfJOS8 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.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJTakoqXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTn9cwP/3/cM/N6Xaq2BY2cU+mpCiHw pQ5Vq+YAinw0a6jcBBtjkhOxXXxw4d/loTxX1G/MbawFHXN6S++taHmmrJkeIY6K TPzFXtXbsulJjYs9VA8Todl2GAP+G2JS0xh+/uKqcv5PwIPFuQvciQnMrHE4vRLn uED4EYnpVtRV3Nk5PX7VBo/T51/lU6stCULgEJiQQPCuqByy9vSH9qE6B22AfgQT r2bKgXLqU6Y2Oai4/I20XChnvN42I0QMzZl0zBSuVFzoourqnWYFlr9AYnwpvYFw upyqcC2gsXKv2rLc1RlkxrQq3O3c4IlamvMWHASJMa6V+fP/1xbx0jgjphqUQ9bA c6pAsHa+GoNjrRro+Q0a5fGnkZxoFlu+9KWP0ZiXvGWy7j4L8UUmRi+f5BTrlevI K386OCVdLBXN3nJHLExT8v4aMkPw68AC7NDEGDFBzxQn9dF29ga1HoZaD4uKxFBV Aefgn8Ym8ZT5Ccllzgha/rXt7HjFhtvQAvc6hZ7cZfn10VK3Q9iQutwB3+TbXHN4 AaLxkfdpfxu2EbF9R272FiDhctAHmw+bIWk+sZZsRcKZj4fcK77werYz2NZZiiKD HQWt2RuWJQHBnywV3DV7kpL0LZw6aYCzWdjm+p3yg1siSIP6hcT+CDdGcdhJ9mH8 uskSOHi1fjgxq+yDTCZO =bbze -----END PGP SIGNATURE----- --rlFRuOVn7C6R5UUvdkfWL1sa5eXcfJOS8--