6

On Ubuntu 18.04, the following commands do not turn up any man pages:

man 2 creat
man 2 ioctl
man 2 chown

There are plenty of other examples, but these illustrate the point.

I tried a bit of apt search and online searching as well, but didn't turn up any clear answer for which package(s) to install to get these and other similar man pages.

How can I install the system call man pages on Ubuntu 18.04?

1 Answer 1

8

The manpages-dev package provides most manpages in section 2 of the manual (documenting system calls), including those for the creat, ioctl and chown system calls.

sudo apt update
sudo apt install manpages-dev

You can usually find the packages that provide manpages by searching the Ubuntu packages database for a file named like creat.2.gz, where (if different) creat is replaced by the name and 2 is replaced by the section number.

Packages providing manpages in some languages other than English also exist and can also usually be found in this way. For example, if you wanted the section 2 manual pages in French, you would install the manpages-fr-dev package.

1
  • 2
    The additional tip about how to find which package provides a given man page is pure gold; thank you!!
    – Wildcard
    Jul 12, 2019 at 21:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .