The OpenBSD ports collection comes with 1000s of software packages, and is organized as a hierarchical directory structure. Locating specific ports can sometimes be tricky, especially when the port name doesn’t contain a descriptive name. To deal with these situations, the global Makefile supports a serach keyword:
$ cd /usr/ports
$ make search key=”debug” 2>&1 |more
Info: library providing malloc debugging via VM protection
Maint: Niklas Hallqvist
Info: Assembly Language Debugger
Maint: Patrick Alken
This is super useful for locating all ports that match a specific purpose (e.g., all debugging utilities).