From owner-freebsd-questions@FreeBSD.ORG Sat Jun 25 23:31:45 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F5F616A41C for ; Sat, 25 Jun 2005 23:31:45 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7F4643D1F for ; Sat, 25 Jun 2005 23:31:43 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out5.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Sun, 26 Jun 2005 00:32:24 +0100 Message-ID: <42BDE95E.9050003@dial.pipex.com> Date: Sun, 26 Jun 2005 00:31:42 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.8) Gecko/20050530 X-Accept-Language: en, en-us, pl MIME-Version: 1.0 To: Mark Bucciarelli References: <4284E7C4.6030909@gaiahost.coop> <20050518162928.0541543DB0@mx1.FreeBSD.org> <20050625210934.GB3038@pooh.hubcapconsulting.com> In-Reply-To: <20050625210934.GB3038@pooh.hubcapconsulting.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Jun 2005 23:32:24.0657 (UTC) FILETIME=[242D3410:01C579DE] Cc: freebsd-questions@freebsd.org Subject: Re: Managing updates in jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2005 23:31:45 -0000 Mark Bucciarelli wrote: >On Wed, May 18, 2005 at 06:29:42PM +0200, Ruben Bloemgarten wrote: > > >>What I find a lot easier is to use freebsd-update for the base system >>updates and, after having mount_nullfs'd /usr/ports from the host system >>onto the jailed systems, portsnap and portupgrade. >>-> host system : freebsd-update/portsnap/portupgrade >> Jailed system : freebsd-update/portupgrade >> >> > >Thanks Ruben. > >I have a couple follow-up questions. > >(1) When do you run cvsup? > > I don't understand the relationship between cvsup and portupgrade. As I > understand things, portupgrade fetches the latest tarball of the given > port. If this is indeed the case, why does the portupgrade man page have > a tip that says be sure to run portsdb -Uu everytime you cvsup? This tip > suggests that you should run cvsup as part of the portupgrade routine. > > cvsup is a tool for maintaining a set of checked out files in sync with a remote CVS repository without having to use CVS directly. In the case of the ports tree, those files are things like the Makefile, package descriptions and patches. These describe what tarball is needed to install a port, how to patch and make it for FreeBSD, and just as importantly how to uninstall it. The tarball is the source code for the package, and is not handled by cvsup at all. If you never install a port then the tarball for it never lives on your system. portupgrade is a tool for automating the installing or upgrading of a port, including keeping track of your preferred options (/etc/pkgtools.conf) and handling dependencies between ports. portsdb is a tool for updating /usr/ports/INDEX{-5} and /usr/ports/INDEX.db (the latter being created from the former). The index is used when you do e.g. a "make search" in /usr/ports. See man ports for the details. If you want the index to be up-to-date after you have run cvsup, then you also need to run portsdb -Uu to rebuild it based on the new updates you downloaded with cvsup. There is no requirement to update ports with portupgrade after you have run cvsup, and portupgrade does not even always need the index to be up-to-date. However, if you specify a "portorigin glob" e.g. archivers/p5-*, this is apparently looked up in the index so it helps if it is up-to-date. Many people run a cron job to do a cvsup regularly, and at the end of that job run portsdb-Uu just so everything is tidy and up-to-date. The when you come to do a portupgrade you know that everything is in sync. cvsup is also used to keep the system source (/usr/arc) up-to-date, but that has nothing to do with portupgrade or portsdb. >(2) What value do you use for the base parameter in your cvsup file? > > Wherever you want cvsup to keep its bookkeeping files. I don't specify anything so use the default /usr/local/etc/cvsup (the files going into the sub-directory "sup") > Should these bookkeeping files be shared between the jail and the > mothership? > > No clue, sorry. --Alex