public
Description: Simple MacPort cleaning script
Homepage: http://www.timothylive.net/
Clone URL: git://github.com/highwind/port-purge.git
name age message
file README Fri Mar 06 23:09:13 -0800 2009 first working version with user input and loops... [Timothy Kim]
file port_purge Fri Mar 06 23:17:33 -0800 2009 fixed integer adding bug [Timothy Kim]
README
This script scans the installed packages in macports and
uninstalls them if they do not have any dependents and
is not in the "world" file provided.

syntax:
    $ port_purge [WORLD_FILE]

TODO: [OPTIONS] is used when executing port uninstall 
[WORLD_FILE] is list of packages that should be excluded

This code is in public domain.

Author: Timothy Kim (timothykim@timothylive.net)


Example Usage:

$ port_purge
Searching for installed packages with no dependents...
- autoconf
- git-core
- lame
- wget
Found 12 packages.
> Would you like to uninstall found packages? (y/[n]) : n

$ cat world
git-core
lame
wget

$ port_purge world
- autoconf
Found 3 packages.
> Would you like to uninstall found packages? (y/[n]) : y
--->  Deactivating autoconf @2.63_0
--->  Uninstalling autoconf @2.63_0
> Would you like to scan again? ([y]/n) : y
Searching for installed packages with no dependents...
No packages found.

$