Date: Sun, 15 Apr 2001 16:01:56 -0700 (PDT) From: Ken Bolingbroke <hacker@bolingbroke.com> To: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Ports deinstall / reinstall Message-ID: <Pine.BSF.4.21.0104151558430.69816-100000@fremont.bolingbroke.com> In-Reply-To: <011501c0c5f2$a72ee600$0508a8c0@lofi.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 15 Apr 2001, Michael Nottebrock wrote: > On Sun, 15 Apr 2001, Ken Bolingbroke wrote: > > > From various tidbits on the lists, and my own trial and error > process, > > I've developed the following procedure: > > > > 1) port foo-1.2 is out of date, the current versions is foo-1.3 > > > > 2) go to the foo port directory and run "make" > > > > 3) if make completes successfully, run "pkg_delete foo-1.2" > > > > 3a) if that fails because other ports depend on foo-1.2, then do > > "cp /var/db/pkg/foo-1.2/+REQUIRED_BY /tmp" and then do > > "pkg_delete -f foo-1.2" > > > > 4) run "make install" > > > > 4a) if you did step 3a), then do > > "mv /tmp/+REQUIRED_BY /var/db/pkg/foo-1.3/" > > > > 5) run "grep foo-1.2 /var/db/pkg/*/+CONTENT", and if you get > something > > like /var/db/pkg/bar-2.7/+CONTENTS:@pkgdep foo-1.2", then edit > that > > file to reflect your upgrade to foo-1.3. > > with "unsubscribe freebsd-questions" in the body of the message > > The procedure described at > http://www.freebsddiary.org/pkg_version.html might be interesting for > you, since it allows you to keep your installed ports&packages > up-to-date completely automagically (not failsafe, though). Uh, no. That procedure only does steps 2, 3a, and 4 above. It does nothing to handle package dependencies. I want to keep package dependencies intact, so I do the additional steps as described. I still do use pkg_version to check to see which ports need updating, but I do the rest manually. Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0104151558430.69816-100000>