Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2014 16:21:24 +0100
From:      Kurt Jaeger <lists@opsec.eu>
To:        olli hauer <ohauer@gmx.de>
Cc:        ports@freebsd.org
Subject:   Re: pkg: /var/cache/pkg and pkg upgrade, how does this work ?
Message-ID:  <20141130152124.GM44537@home.opsec.eu>
In-Reply-To: <547B2E97.1080903@gmx.de>
References:  <20141130143904.GL44537@home.opsec.eu> <547B2E97.1080903@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

> > I have a host with a up2date /var/cache/pkg/ and a jail with a
> > not so up2date pkg collection.
> > 
> > Now I want to mount /var/cache/pkg into the jail at the same
> > location and hope that I do not have to re-fetch all the files.
> > 
> > Testing this, the problem is: The packages installed in the jail
> > are deemed up2date by pkg and they are *not* updated at all ?
> > 
> > How can I update a jail with the pkg cache from 'above' and avoid
> > fetching packages all over again ?

> In case your repo is defined this way on your host
> 
> Repositories:
>   $reponame: {
> ...

Yes, exactly.

> copy also the $reponame.meta and repo-$reponame.sqlite from
> /var/db/pkg to the jail.
> Additional set "REPO_AUTOUPDATE = false" in the pkg.conf from the jail.
> 
> Now the jail has all references for the packages and the update should work.

I have to test this in more detail.

-- 
pi@opsec.eu            +49 171 3101372                         6 years to go !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141130152124.GM44537>