Great question — answering as the UphillTech team:
Suspecting you want to search for both words you use grep : pkg search web |grep server Based on pkg documentation this command should work: pkg -g search "web server" You may add -i to make search case insensitive
Full answer by Romeo Ninov: https://superuser.stackexchange.com/a/1785073 (CC BY-SA 4.0).
Need it done for your business? UphillTech.