I am trying to clean up a system with a LOT of cruft. Is there some
argument I could pass to pkg_deinstall that would result in "delete
all packages installed, except for X, Y and Z" (and obviously their
pkg_info |cut -f 1 -d " " >/tmp/pkglist
edit pkglist and delete lines X, Y and Z
pkg_delete `cat /tmp/pkglist`
ignore errors about package can't be deleted because X, Y or Z requires
it. it's exactly what you want.
email@example.com mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"