From owner-freebsd-questions@FreeBSD.ORG Tue Jan 2 10:35:24 2007 Return-Path: X-Original-To: freebsd-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 02CE116A4A7 for ; Tue, 2 Jan 2007 10:35:24 +0000 (UTC) (envelope-from vizion@vizion.occoxmail.com) Received: from dukecmmtao03.coxmail.com (dukecmmtao03.coxmail.com [68.99.120.70]) by mx1.freebsd.org (Postfix) with ESMTP id 8DB4313C441 for ; Tue, 2 Jan 2007 10:35:21 +0000 (UTC) (envelope-from vizion@vizion.occoxmail.com) Received: from dukecmmtao03 ([172.18.22.61]) by dukecmmtao03.coxmail.com (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with SMTP id <20070102103521.HBBD60.dukecmmtao03.coxmail.com@dukecmmtao03>; Tue, 2 Jan 2007 05:35:21 -0500 X-Mailer: Openwave WebEngine, version 2.8.16 (webedge20-101-1106-20040809) From: Vizion Organization: vizion Communications To: Date: Tue, 2 Jan 2007 2:35:20 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20070102103521.HBBD60.dukecmmtao03.coxmail.com@dukecmmtao03> Cc: Subject: Re: portupgrade - skipping -held by user- meaning? 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: Tue, 02 Jan 2007 10:35:24 -0000 Re: portupgrade - skipping -held by user- meaning? > -----Original Message----- > From: Roger Merritt [mailto:mcrogerm@stjohn.ac.th] > Sent: Tuesday, January 02, 2007 2:22 AM > To: Vizion > Subject: Re: portupgrade - skipping -held by user- meaning? > > > At 01:40 AM 1/2/2007 -0800, you wrote: > > > > > -----Original Message----- > > > From: owner-freebsd-questions@freebsd.org > > > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of > Sahil Tandon > > > Sent: Monday, January 01, 2007 3:36 PM > > > To: freebsd-questions@freebsd.org > > > Subject: Re: portupgrade - skipping -held by user- meaning? > > > > > > > > > Vizion wrote: > > > > > > > What does it mean when the message > > > > ---> skipping [portname] because it is held by user > > > (specify -f to force) > > > > > > Does said port appear in the HOLD_PKGS array within > > > pkgtools.conf? From > > > that file: > > > > > > # HOLD_PKGS: array > > > # > > > # This is a list of ports you don't want > portupgrade(1) to upgrade, > > > # portversion(1) to suggest upgrading, or pkgdb(1) to fix. > > > # You can use wildcards ("ports glob" and "pkgname glob"). > > > # -f/--force with each command will override the held status. > > > > > > > and when & why should -f be specify? > > > > > > When you want to force the upgrade of a package even though you've > > > "held" it in pkgtools.conf. > > > > >Thanks from what you say I understand what happens but do > not understand > >the when and whys!! > >My pkgtools.conf had entries in it but none made by me. In what > >circumstances would one choose to "hold" and how come there > are "holds" > >without my knowing anything about it? > > > >This is always one of the difficulties with freebsd .. the > what and how > >questions get answered in the man pages but information that informs > >judgement upon when the "how" and "what" to-do is best > implemented are > >missing!! > > > >Thanks for your help > > One way it can happen is from installing Perl modules that > haven't been > ported. I had to install three or four using CPAN, and they > were entered > into my HOLD_PKGS array automagically. The reason is (I > suppose) because > they aren't available in the ports and so portupgrade > shouldn't generate > errors when it can't fetch them. I would guess other > installations that > don't come from ports should be treated the same way -- when > you want to > upgrade them you need to do it the same way you did the original > installation. I can't remember now any that I did manually; I > try to only > install stuff that's in the ports collection. I don't know > how the entries > got put in your HOLD_PKGS array, but you might do a make > search and see if > they have been added to the ports collection since you installed them. > > Tghanks very much Roger.. understood. I will write a short script to check for changes in pkgtools.conf and run it both before and after portupgrade is run. That way I will at least have a handle on what is going on. Thanks again David