first make sure the pkgdb is ok and in sync with the port tree with pkgdb -F.

I use pkg_deinstall (comes with portupgrade) to do that kind of thing.
Use option -R and -r to sweep up and down in the depency tree with the -c option that checks wether a package's files have been overwritten by another's. In that case, it aborts. You can then investigate, deinstall the cuprit, continue, then maybe after that reinstall it. Most important, always use -n and maybe -v to know what will happen without actually touching anything.


This is the most powerfull way I know to _really_ clean things without breaking things, as it is always a possible a package overwrote another's files. Ports, correctedness and stability made me switch over from linux, portupgrade and pkg_deinstall make me stay.

RaphaŽl

Le Mercredi, 22 oct 2003, ŗ 10:43 Europe/Zurich, Ruben de Groot a ťcrit :

On Wed, Oct 22, 2003 at 12:55:59PM +1000, Chris Richards typed:

In-Reply-To: <[EMAIL PROTECTED]>

Please don't hijack other threads when asking a new question.


Hi Everyone,

I have installed 2 packages which inturn installed a bunch of
dependencies... They are "imageindex-1.0.6" and "gallery-1.4.0.1" I was
seeing which one I like best - now I have decided I want to keep gallery
and uninstall imageindex.


What is the cleanest way to do this? I have noticed that they both have
common dependencies so I can't just use the "pkg_delete -r" option - I
am sure this is a common problem and there is probably an easy way to
uninstall all dependencies for imageindex except for the ones that are
needed for gallery.

If you have the portupgrade package installed (which is a good idea
anyway), you can use pkg_deinstall -R, which will deinstall all packages
required by the given package as well. It will fail deinstalling
packages required by other packages, which is precisely what you want.


pkg_delete -r imageindex-1.0.6 will recursively delete packages that
depend on imageindex, not the packages required by it.

-Ruben

Can anyone help me?

Thank you,
Chris


_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to