Bug 54912 - New port: pkg_cutleaves - Perl script for finding/pkg_deinstalling 'leaf' packages
Summary: New port: pkg_cutleaves - Perl script for finding/pkg_deinstalling 'leaf' pac...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-27 12:30 UTC by Stefan Walter
Modified: 2003-09-30 15:19 UTC (History)
0 users

See Also:


Attachments
pkg_cutleaves-port.shar (10.56 KB, text/plain)
2003-07-27 12:30 UTC, Stefan Walter
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Walter 2003-07-27 12:30:14 UTC
	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.
Comment 1 Stefan Walter 2003-08-19 14:40:29 UTC
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
Comment 2 Yen-Ming Lee freebsd_committer freebsd_triage 2003-09-30 15:19:50 UTC
State Changed
From-To: open->closed

Committed, thanks.