From owner-freebsd-ports@FreeBSD.ORG Thu Aug 14 13:50:42 2014 Return-Path: Delivered-To: freebsd-ports@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 36D1B881 for ; Thu, 14 Aug 2014 13:50:42 +0000 (UTC) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 7BC542899 for ; Thu, 14 Aug 2014 13:50:40 +0000 (UTC) Received: (qmail 49611 invoked by uid 89); 14 Aug 2014 13:43:57 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@194.97.158.66) by mail.grem.de with ESMTPA; 14 Aug 2014 13:43:57 -0000 Date: Thu, 14 Aug 2014 15:43:56 +0200 From: Michael Gmelin To: Matthias Apitz Subject: Re: installing packages into a mounted system Message-ID: <20140814154356.16dcac46@bsd64.grem.de> In-Reply-To: <20140814133111.GA2346@La-Habana> References: <20140814131850.GA28408@sh4-5.1blu.de> <53ECB81E.8040308@mail.lifanov.com> <20140814133111.GA2346@La-Habana> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Nikolai Lifanov , freebsd-ports@freebsd.org 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:50:42 -0000 On Thu, 14 Aug 2014 15:31:11 +0200 Matthias Apitz wrote: > El d=C3=ADa Thursday, August 14, 2014 a las 09:22:38AM -0400, Nikolai > Lifanov escribi=C3=B3: >=20 > > > # PACKAGESITE=3Dfile://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=20 > > >=20 > >=20 > > >From the man page: > > pkg [-v] [-d] [-l] [-N] [-j | -c > path>] > >=20 > > You could try copying pkg-static inside the chroot and use > > pkg-static -c (from the host, don't invoke the chroot command > > manually). > >=20 > > I have been installing packages to jails this way for a while. >=20 > # pkg-static -c /mnt install xorg-7.7 >=20 > gives the same error messages as above. >=20 Did you run "pkg repo" on your repo, e.g. cd mypackerepodir pkg repo . If you don't want to use a repo you could also use "pkg add", e.g. cd $PKGDIR && pkg add xorg-7.7.txz --=20 Michael Gmelin