How to fix Alpine Linux ERROR: 'install' is not an apk command

Problem:

You are trying to install an apk package using e.g.

example.sh
apk install python

but you see this error message:

example.txt
ERROR: 'install' is not an apk command. See 'apk --help'.

Solution

Use apk add instead of apk install to install packages on Alpine Linux !

So instead of

example.sh
apk install python

use

example.sh
apk add python

 


Check out similar posts by category: Alpine Linux