pkg_add can be used to install package available from the repo, such as ftp.openbsd.org/pub/OpenBSD/5.2/packages/i386
pkg-config –list-all can list all packages installed
Install from source code: download the source code, configure, make and make install
1. How to check whether a library is install or not? it seems pkg_info or pkg-config cannot provide all information.
2. How to build a library or module from source code tree of OpenBSD? and how to load a module into the kernel?