From owner-freebsd-ports@FreeBSD.ORG Thu Aug 14 13:22:50 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB6A614 for ; Thu, 14 Aug 2014 13:22:50 +0000 (UTC) Received: from mail.lifanov.com (mail.lifanov.com [206.125.175.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D1A6E2677 for ; Thu, 14 Aug 2014 13:22:50 +0000 (UTC) Received: by mail.lifanov.com (Postfix, from userid 58) id 9684F1B2917; Thu, 14 Aug 2014 09:22:44 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.lifanov.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (vnat004.nandomedia.com [166.108.31.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.lifanov.com (Postfix) with ESMTPSA id 466FE1B2912; Thu, 14 Aug 2014 09:22:40 -0400 (EDT) Message-ID: <53ECB81E.8040308@mail.lifanov.com> Date: Thu, 14 Aug 2014 09:22:38 -0400 From: Nikolai Lifanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Matthias Apitz , freebsd-ports@freebsd.org Subject: Re: installing packages into a mounted system References: <20140814131850.GA28408@sh4-5.1blu.de> In-Reply-To: <20140814131850.GA28408@sh4-5.1blu.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2014 13:22:51 -0000 On 08/14/14 09:18, Matthias Apitz wrote: > > Hello, > > I've compiled ~1300 packages with poudriere 3.1pre on a 'head' system; > went fine; > > mounted below /mnt is a complete new system (an USB key) which boots > fine alreaday; the 1300 resulting *.txz file are copied into /mnt/PKGDIR > > in the past, using the pkg_* tools, I could just install the packages > with: > > # PKG_PATH=/PKGDIR > # export PKG_PATH > # chroot /mnt pkg_add xorg-7.7 > # chroot /mnt pkg_add kde-4.10.5 > ... > > How this can be done now with pkg(8)? I thought I will compile a > pkg-static and move this to into the /mnt system too with > > # chroot /mnt mkdir -p /usr/local/sbin > # cp -p /usr/local/sbin/pkg-static /mnt/usr/local/sbin > > pkg-static(8) works there, bringing up the help with: > > # chroot /mnt /usr/local/sbin/pkg-static help > > But, how do I specify that it should install for example xorg-7.7 > having its file (and all others) in /mnt/PKGDIR/xorg-7.7.txz > > It seems to look for some files digests.txz or repo.txz which I do not > have: > > # PACKAGESITE=file://PKGDIR export PACKAGESITE > # chroot /mnt /usr/local/sbin/pkg-static install xorg-7.7 > Updating repository catalogue > pkg-static: file://PKGDIR/digests.txz: No such file or directory > pkg-static: No digest falling back on legacy catalog format > pkg-static: file://PKGDIR/repo.txz: No such file or directory > > Any hints? > > Thx > > matthias > > >From the man page: pkg [-v] [-d] [-l] [-N] [-j | -c ] You could try copying pkg-static inside the chroot and use pkg-static -c (from the host, don't invoke the chroot command manually). I have been installing packages to jails this way for a while. - Nikolai Lifanov