Hey all,

I have a script to sort of kickstart an installation after doing a
bare install of OpenBSD, and it's designed to be idempotent (won't
hurt to run it several times).

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.

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?
--
Effing the ineffable since 1997. | http://www.subspacefield.org/~travis/
My emails do not usually have attachments; it's a digital signature
that your mail program doesn't understand.
If you are a spammer, please email [email protected] to get blacklisted.

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply via email to