From owner-freebsd-ports@FreeBSD.ORG Sun Nov 30 14:50:04 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AEB9867A for ; Sun, 30 Nov 2014 14:50:04 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 472B4B75 for ; Sun, 30 Nov 2014 14:50:03 +0000 (UTC) Received: from [192.168.0.100] ([87.139.233.65]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MEo4s-1Xf7G435cA-00G4nS; Sun, 30 Nov 2014 15:49:54 +0100 Message-ID: <547B2E97.1080903@gmx.de> Date: Sun, 30 Nov 2014 15:49:59 +0100 From: olli hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Kurt Jaeger Subject: Re: pkg: /var/cache/pkg and pkg upgrade, how does this work ? References: <20141130143904.GL44537@home.opsec.eu> In-Reply-To: <20141130143904.GL44537@home.opsec.eu> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:bJa2J7wQI088HwIO6Yy6+n+KmBccr7TXFabSo0GW8i1X3XUBr6w IAZNmGEP5IC92drAzwjUR7l1EaK5BaYMpwg2C+1zmz5uhB9dyiITNlEHWzl9jYdpHNGRBOn ueq4XfnYTooanKy8ETzWhKxHbNKd+UtYs+yg+ToGwp/9L04kZpHWZn/7DRDNt1yU+LvTfkl FiGRUFnAuopFoolTxWaTg== X-UI-Out-Filterresults: notjunk:1; Cc: 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: Sun, 30 Nov 2014 14:50:04 -0000 On 2014-11-30 15:39, Kurt Jaeger wrote: > 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 ? > Hi Kurt, In case your repo is defined this way on your host Repositories: $reponame: { ... 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. -- olli