Re: installing packages into a mounted system

From: Michael Gmelin <freebsd_at_grem.de>
Date: Thu, 14 Aug 2014 15:43:56 +0200
On Thu, 14 Aug 2014 15:31:11 +0200
Matthias Apitz <guru_at_unixarea.de> wrote:

> El día Thursday, August 14, 2014 a las 09:22:38AM -0400, Nikolai
> Lifanov escribió:
> 
> > > # 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 
> > > 
> > 
> > >From the man page:
> >      pkg [-v] [-d] [-l] [-N] [-j <jail name or id> | -c <chroot
> > path>]
> > 
> > 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.
> 
> # pkg-static -c /mnt install xorg-7.7
> 
> gives the same error messages as above.
> 

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

-- 
Michael Gmelin
Received on Thu Aug 14 2014 - 11:50:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:51 UTC