On Alpine Linux, given the results of an apk search, how do I determine the package name to give to apk add?
For example, suppose I forgot the how to spell "lighttpd", or I forgot exactly what the package name was. I might do an apk search "lightt*" which yields the following on my machine (a Docker image):
lighttpd-mod_auth-1.4.45-r1
acf-lighttpd-0.6.0-r2
lighttpd-mod_webdav-1.4.45-r1
lighttpd-1.4.45-r1
lighttpd-doc-1.4.45-r1
lighttpd-dbg-1.4.45-r1
Given the above, how do I figure out that I need to type apk add lighttpd? I naively typed in apk add lighttpd-1.4.45-r1 and it gave an error:
ERROR: unsatisfiable constraints:
lighttpd-1.4.45-r1 (missing):
required by: world[lighttpd-1.4.45-r1]
I'm used to things like apt-cache search on Debian, where each line of the search results includes exactly the package name to type into apt-get install.