ERROR: unsatisfiable constraints: man (missing): required by: world[man] Alpine Linux

When I try to install man pages on Alpine Linux I get:

# apk add man man-pages

Error:

ERROR: unsatisfiable constraints:
  man (missing):
    required by: world[man]

How do I fix this error?

For Alpine Linux version 3.12 package name changed from man to mandoc. Hence you must run to get rid of error:

# apk add mandoc man-pages

See our guide


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki