From owner-freebsd-questions Thu Mar 8 16:55:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 7EA5C37B718 for ; Thu, 8 Mar 2001 16:55:31 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 16957 invoked by uid 100); 9 Mar 2001 00:55:30 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15016.10754.716629.793538@guru.mired.org> Date: Thu, 8 Mar 2001 18:55:30 -0600 To: Andrew Hesford Cc: questions@freebsd.org Subject: Re: Updating software In-Reply-To: <61951705@toto.iv> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andrew Hesford types: > I have a list of packages that I've compiled and installed from ports, > which are now outdated. Last night, I started a Compile Fest to update > all of them, but aborted due to complications. Well, if you tried compiling lots of ports in parallel, you can get into lots of trouble. > Certain packages are easy to update, since I can just remove the old > package and build the new one. However, packages with a lot of > dependencies (like GTK) cannot be removed without hacking up > /var/db/pkg. > > I want to replace packages which have dependencies, but I don't want to > bother fooling with /var/db/pkg, and I definitely to not want to > uninstall packages that depend on what I want to rebuild. Is there a > good way to replace a package? This is a FAQ, though my entry hasn't made it out of the PR yet (bleah). Basically, you use the -f option of pkg_delete to remove the package. This *may* break some of the packages that depend on that one; the only way to be sure you aren't doing that is to delete and reinstall the dependent pacakges after the fact. I generally don't bother, though. > I've tried pkg_update, but somebody told me that was beta, and in any > event, it can't locate warnings.pm (because I don't have that file > anywhere). pkg_version -c will spit out a script that can be used to update all the out of date packages in order. You *must* edit this script. Delete the echo's and exit at the top, and review it to make sure it makes sense. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message