On Thu, Mar 14, 2013 at 13:54, Sean Shoufu Luo wrote: > 1. How can I know exactly what packages/libraries/modules installed (and > loaded)?
pkg_info > It seems 'pkg-config --list-all' does not provide all libraries listed, for > example, libpcap is installed, but pkg-config fails to list it libpcap isn't part of a package. It's just included in base. You may want to read http://www.openbsd.org/faq/faq15.html Actually, you should probably read the whole FAQ. > Is there any tool like 'lsmod/insmod/rmmod' in Linux in Openbsd? Some one > pointed me to 'lkm', however, it seems it is only a API. I need write my > own tool to list all modules loaded? You should look at the SEE ALSO section of man lkm, such as the reference to modstat. But since there aren't any modules by default, the answer is pretty easy: there are no modules loaded. > > 2. How can I build a package from source code tree? > > I want to build and install 'pthread' from source code tree. However, there > are only three folders in the /usr/src/lib/libpthread/, and no souce code. > Why? The libpthread code now lives in src/lib/librthread.