From owner-freebsd-questions Sun Mar 25 10:40:55 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 E5C2A37B718 for ; Sun, 25 Mar 2001 10:40:50 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 97902 invoked by uid 100); 25 Mar 2001 18:40:49 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15038.15281.451652.430271@guru.mired.org> Date: Sun, 25 Mar 2001 12:40:49 -0600 To: Benjamin Close Cc: questions@freebsd.org Subject: Re: Upgrading a port In-Reply-To: <51027369@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 Benjamin Close types: > Hi All, > How do I upgrade a port and make it upgrade all dependancies. > Ie. I currently use cvsup to keep my ports collection up to date. When a > port is updated I use pkg_delete portname to remove the package. If it > complains of depenancies I delete them as well. Then I run make install to > upgrade the port I initally wanted to update. Finally I run make install > on all the ports I had to remove because of dependancies. > > Is there an easier way? I've found pkg_remove aids in removal but is there > something where I can say type: make sometarget which will uninstall all > broken depenancies, upgrade the current package then reinstall the other? No, there's not an easier way. You can generally - but not always - ignore the dependencies. That tend to leave the dependency information out of whack. Deleting and reinstalling the dependencies afterwards will keep that up to date, and avoid any potential problems from having installed the new version of the updated ports. I'd make one suggestion, though. Build the port *before* you delete it, so you know it'll get through the build stage before you wipe out the old stuff. It doesn't happen very often, but it's a pain to avoid that. Doing the same for the dependencies wouldn't hurt. Hmm - maybe pkg-version -c need a hook to deal with dependencies? 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