PORT_CUTLEAVES(8)

NAME
port_cutleaves -- uninstall leaves

SYNOPSIS
port_cutleaves [-b] [-F file] [-l] [-t path] [-V]

DESCRIPTION
Inspired by FreeBSD's pkg_cutleaves, port_cutleaves is an interactive script that eases the uninstallation of leaves - installed ports that are unrequested and have no dependents.

OPTIONS

-b  Don't count ports as leaves when they are needed (only) at build time

-F file
    Specify a different file to read exclusions from <~/.port_leaves.exclude>

-l  List leaves and exit

-t path
    Specify a different location for the base MacPorts Tcl file <@prefix@/share/macports/Tcl or /Library/Tcl>

-V  Display version information and exit

FILES

~/.port_leaves.exclude
    This file is checked for exclusions by default. Leaves that match against an exclusion are ignored. Exclusions can be listed in one of two forms: full name (e.g., mercurial @1.1.2_0+bash_completion) or regular expression (e.g., ^mercurial).

DIAGNOSTICS
port_cutleaves exits 0 on success, and >0 if an error occurs.

AUTHOR
Perry Lee <perry@macports.org>