Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2001 21:04:36 -0500
From:      Mike Meyer <mwm@mired.org>
To:        "Robert T.G. Tan" <rotan@cs.pdx.edu>
Cc:        questions@freebsd.org
Subject:   Re: Maintaining ports, on upgrades.
Message-ID:  <15083.30388.317171.939255@guru.mired.org>
In-Reply-To: <24908657@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Robert T.G. Tan <rotan@cs.pdx.edu> 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.

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15083.30388.317171.939255>