From owner-freebsd-questions@freebsd.org Mon Aug 1 09:57:10 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AD24BAA3D4 for ; Mon, 1 Aug 2016 09:57:10 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B9A51AF9 for ; Mon, 1 Aug 2016 09:57:09 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 6084289DB for ; Mon, 1 Aug 2016 09:57:05 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201601-infracaninophile; t=1470045425; bh=6/fDqCowYgVZdaHvPMzzuk+/LZCl+Q5UdJnf+PbuN0g=; h=Subject:To:References:From:Date:In-Reply-To; z=Subject:=20Re:=20pkg-add=20for=20installing=20into=20a=20jail?|To :=20freebsd-questions@freebsd.org|References:=20<1997dd6e-1abd-4d4 f-e95b-0f4679543a16@mail.com>|From:=20Matthew=20Seaman=20|Date:=20Mon,=201=20Aug=202016=2010:56:59= 20+0100|In-Reply-To:=20<1997dd6e-1abd-4d4f-e95b-0f4679543a16@mail. com>; b=Xzc5Sja6r5x0tUPl6B7RIEserlHZEgCpQP1IpiZkMiKQhrIs9gnEfH1ILjW2KhsLS EslPeyBNrLlrPF09A/eIBSOOjb2wlZ1KbByWHDjVFWE0uQiS7LsRX3vUzU+OjEi3mx towExbwWSHhNV/J02CK/JkJVa2FG1JSSzGtU5hTo= Subject: Re: pkg-add for installing into a jail? To: freebsd-questions@freebsd.org References: <1997dd6e-1abd-4d4f-e95b-0f4679543a16@mail.com> From: Matthew Seaman Message-ID: Date: Mon, 1 Aug 2016 10:56:59 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1997dd6e-1abd-4d4f-e95b-0f4679543a16@mail.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UODR1oodF5gPWQGCSUGOoMLtDvTsUcEia" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RDNS_NONE,SPF_FAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2016 09:57:10 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UODR1oodF5gPWQGCSUGOoMLtDvTsUcEia Content-Type: multipart/mixed; boundary="EWFmfMjiTW2UH2TuHrlW97F1vW9iERne7" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: 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--