答案1
$ 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
可能需要也可能不需要安装 ports 树。