On Mon, Jan 31, 2011 at 2:29 PM, <tra...@subspacefield.org> wrote: > Currently I install some packages, but that's a bit of a time-waster > in that it will reinstall. Is there a way I can test for whether a > package has been installed already, given only the package name, and > not necessarily the executable name (if there is one)? I tried > pkg_info and the exit code is zero even if the package isn't > installed.
$ pkg_info | grep ^png- > /dev/null $ echo $? 0 $ pkg_info | grep ^banana- > /dev/null $ echo $? 1 > Also, I've noticed that if I don't have X11 installed, I can't seem to > install certain packages (such as subversion) and certain ports > (EMACS, and even if I set FLAVOR=no_x11). What's up with that? your whatchamacallit is undercalibrated.