pkg_cutleaves finds installed 'leaf' packages, i.e. packages that are not referenced by any other installed package, and lets you decide for each one if you want to keep or deinstall it (via pkg_deinstall(1)). Usage: pkg_cutleaves [-l] [-x] [-R] -l: List leaf packages only, one per line, and don't ask for anything to be deinstalled. -x: Exclude packages matching expressions given in the exclude file. -R: Run 'pkg_deinstall -R' instead of plain 'pkg_deinstall', so packages depending on removed leaf packages will be deinstalled, too. This port is self contained and includes the Perl script as well as a man page. How-To-Repeat: Install the attached port.
There's a mistake in the explanation of the '-R' parameter of the man page - there cannot be any packages depending on leaf packages. Apply the following patch to correct the man page. Thanks to Adam Weinberger for pointing this out. --- pkg_cutleaves.1.old Tue Aug 12 20:40:15 2003 +++ pkg_cutleaves.1 Tue Aug 12 20:42:45 2003 @@ -24,8 +24,8 @@ .IP -x Exclude packages matching expressions given in the exclude file. .IP -R -Run 'pkg_deinstall -R' instead of plain 'pkg_deinstall', so packages -depending on removed leaf packages will be deinstalled, too. +Run 'pkg_deinstall -R' instead of plain 'pkg_deinstall', so packages the +removed leaf packages depend(ed) on will be deinstalled, too. .SH FILES .I /usr/local/etc/pkg_leaves.exclude .RS
State Changed From-To: open->closed Committed, thanks.