Date: Thu, 14 Aug 2014 15:43:56 +0200 From: Michael Gmelin <freebsd@grem.de> To: Matthias Apitz <guru@unixarea.de> Cc: freebsd-current@freebsd.org, Nikolai Lifanov <lifanov@mail.lifanov.com>, freebsd-ports@freebsd.org 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Aug 2014 15:31:11 +0200 Matthias Apitz <guru@unixarea.de> 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 <jail name or id> | -c <chroot > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140814154356.16dcac46>