pkg question...
Is there a way to remove a package and the dependencies that only said package uses? For example, I have package A which depends on B, C and D. Furthermore, I have package E depends on C. I want to get ride of package A in such a way as packages B and D get deleted too but not package C. Can this be done at all? I've looked at portsclean and libchk but neither really suits what I want. Unless I have mis-read something. Thanks. -- [EMAIL PROTECTED] -=*=- www.kierun.org PGP: 009D 7287 C4A7 FD4F 1680 06E4 F751 7006 9DE2 6318 ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg question...
Yann Golanski wrote: Is there a way to remove a package and the dependencies that only said package uses? ports - sysutils/pkg_rmleaves ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg question...
On Tue, 2005-May-17 22:19:05 +1000, Graham Menhennitt wrote: Yann Golanski wrote: Is there a way to remove a package and the dependencies that only said package uses? ports - sysutils/pkg_rmleaves That is an interactive script that lets you delete all packages that aren't required by other packages. You still need some way to work out what dependencies were installed by the first package. You could try looking at pkg_deinstall -R (part of portupgrade). BTW, if you compiled the package, it could have installed build-time dependencies that aren't recorded as requirements and I don't know any easy way to find/delete them. -- Peter Jeremy ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg question...
Peter Jeremy wrote: On Tue, 2005-May-17 22:19:05 +1000, Graham Menhennitt wrote: Yann Golanski wrote: Is there a way to remove a package and the dependencies that only said package uses? ports - sysutils/pkg_rmleaves That is an interactive script that lets you delete all packages that aren't required by other packages. You still need some way to work out what dependencies were installed by the first package. But I think it can be made to do what Yann wants. You can pkg_delete the original package/port (A as he described it). Then run pkg_rmleaves (possibly more than once) and it will delete B and D, but keep C because it's not a leaf. If you have any leaf packages that you don't want to delete, you need to be careful of those. Perhaps run pkg_rmleaves before deleting A and note any pre-existing leaves. Graham ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]