---
title: 'How to add all man pages to alpine'
url: 'https://grav.munn.me/my-blog/how-to-add-all-man-pages-to-alpine'
markdown: 'https://grav.munn.me/my-blog/how-to-add-all-man-pages-to-alpine.md'
date: '2025-08-13'
description: 'I found this nice link which shows how to add all the man pages for all installed commands in alpine. Here is the code for convenience: apk list -I | sed -rn ''/-doc/! s/([a-z-]+[a-z]).*/\1/p'' | awk ''{ print system("apk info \""$1"-doc\" > /dev/null") == 0 ? $1 "-doc" : "" }'' | xargs apk …'
---

# How to add all man pages to alpine

I found this [nice link](https://georgegarside.com/blog/technology/alpine-linux-install-all-man-pages/) which shows how to add all the man pages for all installed commands in alpine.

Here is the code for convenience:

```bash
  apk list -I |
  sed -rn '/-doc/! s/([a-z-]+[a-z]).*/\1/p' |
  awk '{ print system("apk info \""$1"-doc\" > /dev/null") == 0 ? $1 "-doc" : "" }' |
  xargs apk add
```

Very happily adds all the man pages in alpine.

---

## Navigation

- Parent: [My Blog](https://grav.munn.me/my-blog.md)
- Previous: [How to make ipv6 only version of alpine linux](https://grav.munn.me/my-blog/how-to-make-ipv6-only-version-of-alpine-linux.md)
- Next: [Getting windows 11 to not bork with qemu](https://grav.munn.me/my-blog/getting-windows-11-to-not-bork-with-qemu.md)
