From owner-freebsd-questions Sat Apr 28 19: 4:41 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 C7F1537B424 for ; Sat, 28 Apr 2001 19:04:37 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 28974 invoked by uid 100); 29 Apr 2001 02:04:36 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15083.30388.317171.939255@guru.mired.org> Date: Sat, 28 Apr 2001 21:04:36 -0500 To: "Robert T.G. Tan" Cc: questions@freebsd.org Subject: Re: Maintaining ports, on upgrades. In-Reply-To: <24908657@toto.iv> X-Mailer: VM 6.90 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 Robert T.G. Tan types: > Ending up with quite a bit of installed ports, I'd like to upgrade > from RELEASE_4.2, to RELEASE_4.3. Not to be to specific on the > releases, for any up/downgrade, what do I do with my installed > ports? > Is it recommended to deinstall the whole lot, after wich reinstall > them again? Yes. Some of them won't change at all, as they are data only, but there aren't many of those. Others may not need it, but for most the port will be out of date, so reinstalling is probably a good idea. It's also possible to have an up to date port, and have it break because something in the system include files that it depends on changed, though that's rare. > What is a good way of administering the above? Get the list of installed ports from /var/db/pkgs before you deinstall any of them. Before you start reinstalling them, prune the list - anything that you're not longer using can probably be dropped from it. In particular, I throw out any libraries that aren't being used for local development. If a port needs them, it'll reinstall them. If none of them need them and I'm not using them, then there's no point in installing them. During the rebuild process, you should avoid rebuilding a port that's already been built and installed. If you've got the space, not doing "make clean" will do that. If you don't have the space and have to cleaning each port after it's installed, you should check to see if a prior port didn't install the one you're looking at before you do the install. An intermediate startegy also works: install ports until you're about out of space, then make clean on them, then check the list of things left and remove anything that's already listed in /var/db/pkgs. 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