安裝man文檔

來源:互聯網
上載者:User

        今天想查getopt函數的定義的時候,使用man 3 getopt的得到的是perl中的定義,而我想要linux中的getopt函數的定義,所以應該是man文檔沒有安裝完整吧。沒關係,把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          2:20050219-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          

          這麼多包該選哪一個呢?我們可以看看每個包的描述。(使用yum 的 info 選項)
[root@huntinux 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).
(這個包的描述說明其中含有很多man文檔。)

把上面那個包安上就可以了。

[root@huntinux huntinux]# yum install man-pages.noarch

再次執行man 3 getopt就可以了。

(上面還有man的中文包:man-pages-zh-CN.noarch)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.