On Tue, Aug 04, 2009 at 11:30:44AM -0400, Luis Useche wrote: > On Tue, Aug 4, 2009 at 11:20 AM, Bret S. Lambert<[email protected]> > wrote: > > pkg_delete `pkg_info -t` will almost do what you're looking for ;) > > The problem with this command is that it will remove packages > installed for the end user. In my case, for instance, "pkg_info -t" > list zsh, vim, subversion and other.
Brett gave you the pieces and this is UNIX, so it's just a tiny bit more work... # pkg_info -t | cut -d' ' -f1 > pkgs.before # pkg_delete <whatever> # pkg_info -t | cut -d' ' -f1 > pkgs.after # pkg_delete $(comm -13 pkgs.before pkgs.after) -- Darrin Chandler | Phoenix BSD User Group | MetaBUG [email protected] | http://phxbug.org/ | http://metabug.org/ http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation

