Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 May 2014 15:58:37 +0100
From:      Matthew Seaman <matthew@freebsd.org>
To:        freebsd-pkg@freebsd.org
Subject:   Re: bootstrapping  /usr/sbin/pkg inside a jail
Message-ID:  <536A4A1D.8020204@freebsd.org>
In-Reply-To: <536A42E5.4070608@wasikowski.net>
References:  <5369407E.9060008@a1poweruser.com> <53694241.6050207@my.hennepintech.edu> <536A3E10.4030902@a1poweruser.com> <536A42E5.4070608@wasikowski.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?536A4A1D.8020204>