View Single Post
  #2   (View Single Post)  
Old 22nd May 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by shep View Post
Is there a script that would do this?
It is fairly straightforward to pass the output of pkg_info(1) to pkg_delete(1):
Code:
#/bin/sh

for f in $(pkg_info | awk '{ print $1 }') ; do
    echo "pkg_delete -F $f"
done
This code is merely illustrative, but it should give you enough information to complete bulk deletion yourself.
Reply With Quote