I would like to know, given a binary's name, which package I should install on Alpine Linux.
How can I do that?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You have three ways basically.
First: The package should be installed and you need to specify the full path :
apk info --who-owns /path/to/the/file
Second: Use the pkgs.alpinelinux.org website
Third: Use the api.alpinelinux.org API by filtering the json output. For this you need a json parser like jq:
apk add jq
then use the API with the instructions provided here
You're looking for the equivalent of Debian's
apt-file for Alpine. Searching for that yields apk-file.
Basically apt-file but for alpine.