Portupgrade Command Syntax

Drew Tomlinson drew at mykitchentable.net
Mon Apr 14 17:06:36 PDT 2003


I've been trying to construct a command line that will pkg_deinstall all
except for a few.  I've found the -x switch but can not build an "or"
pkgname_glob.  Here's an example of one of the many combinations I tried:

pkg_deinstall -n -x {'XFree86*','webmin','ruby*'} '*'

This particular example will exclude the XFree packages but includes webmin
and ruby*.

My shell is tcsh.  Is it possible to accomplish what I'm trying to do?  How?

Thanks,

Drew



More information about the freebsd-questions mailing list