Date: Mon, 1 Aug 2016 10:56:59 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: pkg-add for installing into a jail? Message-ID: <d1d24622-aab6-7790-fb5d-b992456f9cc6@infracaninophile.co.uk> In-Reply-To: <1997dd6e-1abd-4d4f-e95b-0f4679543a16@mail.com> References: <1997dd6e-1abd-4d4f-e95b-0f4679543a16@mail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UODR1oodF5gPWQGCSUGOoMLtDvTsUcEia Content-Type: multipart/mixed; boundary="EWFmfMjiTW2UH2TuHrlW97F1vW9iERne7" From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Message-ID: <d1d24622-aab6-7790-fb5d-b992456f9cc6@infracaninophile.co.uk> Subject: Re: pkg-add for installing into a jail? References: <1997dd6e-1abd-4d4f-e95b-0f4679543a16@mail.com> In-Reply-To: <1997dd6e-1abd-4d4f-e95b-0f4679543a16@mail.com> --EWFmfMjiTW2UH2TuHrlW97F1vW9iERne7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 07/31/16 10:38, Alnis Morics wrote: > test:/usr/ports/packages/All# pkg -j 1 add apache22-2.2.31_1.txz > apr-1.5.2.1.5.4.txz > pkg: apache22-2.2.31_1.txz: No such file or directory > pkg: Was 'pkg install apache22-2.2.31_1.txz' meant? > pkg: apr-1.5.2.1.5.4.txz: No such file or directory > pkg: Was 'pkg install apr-1.5.2.1.5.4.txz' meant? >=20 > Failed to install the following 2 package(s): apache22-2.2.31_1.txz, > apr-1.5.2.1.5.4.txz >=20 > If there is "No such file or directory", where does pkg look for them? > (I also tried to use full path; the result is the same) Or is pkg-add a= n > exception which doesn't work with -j option? pkg -j 1 something works by jexec'ing itself in the indicated jail first of all, and only then parsing the rest of the command line including opening any files listed there. Unless you have the apache22-2.2.31_1.txz package already available in the right location *inside* the jail you're going to get 'file not found'. It's the same deal with 'pkg -d /somewhere' except that uses chroot(2) rather than jail(2). Cheers, Matthew --EWFmfMjiTW2UH2TuHrlW97F1vW9iERne7-- --UODR1oodF5gPWQGCSUGOoMLtDvTsUcEia Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXnxzrAAoJEABRPxDgqeTnS1QP/ApTHDNqbpeLu5mwd3nQux14 MgQjgdJHL/14mpAeWO1HlzPZ8YPMqY13u1T2bMgNyhYUe3BSPjIubr0dRiKAoJ40 uOP5T0YhdT92Zzs+rNWpzmg7h6BRQ4fCdKq1eH2ZQYaaGoHRCdhwDyBDSa1EdBcz 0AEigjuVjZj7CIUo5AY1Pv3BChNY/XVC8+01YAkzHfkUPqm/fO4K27hdL1zrALHQ rkzg+WnAi7EF8BAAMnqiIvDJ5sjpjlULLibGXiTqY4p/gx30p0QadKz7bbTcLjIf ZZiv52a8v0ABw2sSg868t9T0LI5sBy0rytfEU1/GFProRFhXRz7tnR42o7t/VPA7 bBaSTGC6cO/d13J1WGaQFGoF9DAYNP6aXQNqqflFDgVYI+vRRgAtC7sMvxpqOHJL mZacOwSu097KutQh9KxhO55H+MB01JJQPWtjdY7WbruzIJxw4secuGLVACInqixd vDWjwQQQadU4Y2nLGRAFGQolBlgMkt/cJxVDW0VufPNwxbzoe3gB4eGZhAIA+Tf2 mG+dlNBzqymTA/D9cP6MDrWLQtLzQSKy1t4No7USXsiM1Mphg6fzbZVMLQuOo1MS gH6Aruot5MGripMkJjbFdFCyo1xCa4r3r7j11QglN/y55z8rl2D3jJaOH4lbI8xP APZrmmaS4oNPzTv2Y7sQ =UbJU -----END PGP SIGNATURE----- --UODR1oodF5gPWQGCSUGOoMLtDvTsUcEia--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d1d24622-aab6-7790-fb5d-b992456f9cc6>