When I want to query the getopt function definition today, MAN 3 getopt gets the definition in Perl, And I want to define the getopt function in Linux, therefore, the man document is not completely installed. It doesn't matter. Just install man.
# Yum list man *
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* Fedora: ftp.sjtu.edu.cn
* Rpmfusion-free: ftp.sjtu.edu.cn
* Rpmfusion-free-Updates: ftp.sjtu.edu.cn
* Rpmfusion-nonfree: ftp.sjtu.edu.cn
* Rpmfusion-nonfree-Updates: ftp.sjtu.edu.cn
* Updates: mirrors.163.com
Installed packages
Man-db.i686 2.6.0.2-6. fc17 @ koji-override-0/$ releasever
Available packages
Man-db.i686 2.6.0.2-9. fc17 updates
Man-pages-cs.noarch 0.18.20090209-13. fc17 updates
Man-pages-de.noarch 0.5-6. fc17 Fedora
Man-pages-es.noarch 1.55-17. fc17 Fedora
Man-pages-es-extra.noarch 1.55-17. fc17 Fedora
Man-pages-fr.noarch 3.23-6. fc17 Fedora
Man-pages-it.noarch 2.80-11. fc17 updates
Man-pages-ja.noarch 20120415-1.fc17 updates
Man-pages-ko.noarch-20. fc17 Fedora
Man-pages-pl.noarch 0.24-14. fc17 updates
Man-pages-ru.noarch 0.98-6. fc17 Fedora
Man-pages-zh-CN.noarch 1.5.2-1. fc17 updates
Man2html. i686 1.6-8. G. fc17 updates
Man2html-core.i686 1.6-8. G. fc17 updates
Mana. i686 0.6.1-5. fc17 updates
Manaworld. i686 0.5.2-7. fc17 Fedora
Manaworld-music.noarch 0.3-2. fc17 Fedora
Manchu-fonts.noarch 2.006-4. fc17 Fedora
Manedit. i686 1.2.1-5.1.fc17 Fedora
Maniadrive. i686 1.2-45. fc17.2 updates
Maniadrive-data.noarch 1.2-7. fc17 Fedora
Maniadrive-music.noarch 1.0-6. fc17 Fedora
Maniadrive-track-editor.i686 1.2-45. fc17.2 updates
Mantis. noarch 1.2.8-2. fc17 Fedora
Mantis-config-httpd.noarch 1.2.8-2. fc17 Fedora
Which of the following packages should be selected? We can look at the description of each package. (Use the info option of yum)
[Root @ huntinux] # Yum info man-pages.noarch
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* Fedora: ftp.sjtu.edu.cn
* Rpmfusion-free: ftp.sjtu.edu.cn
* Rpmfusion-free-Updates: ftp.sjtu.edu.cn
* Rpmfusion-nonfree: ftp.sjtu.edu.cn
* Rpmfusion-nonfree-Updates: ftp.sjtu.edu.cn
* Updates: mirrors.163.com
Available packages
Name: Man-pages
Arch: noarch
Version: 3.35
Release: 4. fc17
Size: 4.4 m
Repo: Installed
From repo: Updates
Summary: Man (manual) pages from the Linux documentation project
URL: http://man7.org/linux/man-pages/
License: gplv2 + and GPL + and BSD and MIT and copyright only and IEEE
Description: a large collection of man pages (documentation) from the Linux
: Documentation project (LDP ).
(The description of this package contains many man documents .)
Just install the package above.
[Root @ huntinux] # Yum install man-pages.noarch
Execute MAN 3 getopt again.
(There is also man's Chinese package: man-pages-zh-CN.noarch)