From owner-freebsd-questions@FreeBSD.ORG Thu May 31 23:08:10 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A7F316A421 for ; Thu, 31 May 2007 23:08:10 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmmtao104.cox.net (eastrmmtao104.cox.net [68.230.240.46]) by mx1.freebsd.org (Postfix) with ESMTP id E2B5213C4C7 for ; Thu, 31 May 2007 23:08:09 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao105.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070531182301.XTD28308.eastrmmtao105.cox.net@eastrmimpo01.cox.net>; Thu, 31 May 2007 14:23:01 -0400 Received: from serene.no-ip.org ([72.200.17.85]) by eastrmimpo01.cox.net with bizsmtp id 5uP01X00S1q7YRk0000000; Thu, 31 May 2007 14:23:01 -0400 Received: from serene.no-ip.org (localhost [127.0.0.1]) by serene.no-ip.org (8.14.1/8.14.1) with ESMTP id l4VIMw14062211; Thu, 31 May 2007 13:22:58 -0500 (CDT) (envelope-from conrads@cox.net) Message-Id: <200705311822.l4VIMw14062211@serene.no-ip.org> Date: Thu, 31 May 2007 13:22:53 -0500 From: "Conrad J. Sabatier" To: questions@freebsd.org In-Reply-To: <441wgxp0k7.fsf@be-well.ilk.org> References: <441wgxp0k7.fsf@be-well.ilk.org> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: paul beard , freebsd-questions-local@be-well.ilk.org Subject: Re: what is pkg_create doing? 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: Thu, 31 May 2007 23:08:10 -0000 On Thu, 31 May 2007 09:47:20 -0400 Lowell Gilbert wrote: > paul beard writes: > > > I realize it should be obvious from the name but it seems to > > linger for several minutes after each package is installed. > > > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME > > WCPU COMMAND > > 55763 root 1 121 0 1852K 1232K > > RUN 0 2:38 95.73% pkg_create > > > > I am new to 6.2 (being a belated migrator from 4.x): is there a > > knob somewhere to turn off pkg creation? Not that I see any > > packages being kept anywhere . . . . > > When a package is built, it is always done *after* the port has been > installed into $PREFIX. As far as I recall, packages don't get built > unless you explicitly ask for them, so the command you used to install > the program is what you need to look at for details. Incidentally, > built packages get installed to /usr/ports/packages by default. > > None of this is different from earlier versions, as far as I remember. No, by default, portupgrade runs pkg_create *before* installing the newly built port, to create a backup of the old version in case something goes wrong. Depending on the size of the old port (package), this can take an appreciable amount of time, even on a fast system. Packages are only built *after* installation if one explicitly tells portupgrade to do so, via the "-p" or "--package" switches. The man page lists several package-related ENVIRONMENT variables, which may or may not provide a means to disable some or all of this package creation; I don't know for sure, as I've never tried changing or unsetting them to see what may happen. If you're curious, though, it may be worth experimenting with, although I would certainly advise against disabling the precautionary backup package creation before the new port is successfully installed. -- Conrad J. Sabatier