Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2001 18:55:30 -0600
From:      Mike Meyer <mwm@mired.org>
To:        Andrew Hesford <ajh3@chmod.ath.cx>
Cc:        questions@freebsd.org
Subject:   Re: Updating software
Message-ID:  <15016.10754.716629.793538@guru.mired.org>
In-Reply-To: <61951705@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Hesford <ajh3@chmod.ath.cx> 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.

	<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?15016.10754.716629.793538>