$ ls -d /usr/ports/*/dia*
/usr/ports/graphics/dia/ /usr/ports/misc/dialog/
$ cat /usr/ports/misc/dialog/pkg/DESCR
Dialog is typically invoked from a shell script to provide a set of
curses widgets, e.g. yes/no, checklists, input boxes, menus, progress
boxes, text boxes, etc.
$ doas pkg_add dialog
...
还有更复杂的包数据库搜索工具,例如
pkglocatedb
可能需要也可能不需要安装端口树。