Fedora 9 的 CPIO man 是錯的??? - Linux

Hedda avatar
By Hedda
at 2008-11-07T11:53

Table of Contents

我用的系統是debain家族, 為了謹慎起見, 特地抓了以下檔案回來確認:
http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/releases/7/Fedora/i386/os/Fedora/cpio-2.6-27.fc7.i386.rpm
http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/releases/8/Fedora/i386/os/Packages/cpio-2.9-4.fc8.i386.rpm
http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/releases/9/Fedora/i386/os/Packages/cpio-2.9-7.fc9.i386.rpm
解開來:
mkdir fc7; cd fc7; rpm2cpio ../cpio-2.6-27.fc7.i386.rpm | cpio -ivd
cd ..; mkdir fc8; cd fc8; rpm2cpio ../cpio-2.9-4.fc8.i386.rpm | cpio -ivd
cd ..; mkdir fc9; cd fc9; rpm2cpio --/cpio-2.9-7.fc9.i386.rpm | cpio -ivd

如果你安裝的是 fc7 大概就不會有此誤會了,
man ./fc7/usr/share/man/man1/cpio.1.gz
怎麼只有這樣, 喔, 原來欲知詳情, 請看 info

NAME
cpio - copy files to and from archives

SYNOPSIS
cpio {-o|--create} [-0acvABLV] [-C bytes] [-H format] [-M
message] [-O [[user@]host:]archive] [-F
[[user@]host:]archive] [--file=[[user@]host:]archive] [--for-
mat=format] [--message=message] [--null] [--reset-access-
time] [--verbose] [--dot] [--append] [--block-size=blocks]
[--dereference] [--io-size=bytes] [--quiet] [--force-local]
[--rsh-command=command] [--help] [--version] < name-list [>
archive]

cpio {-i|--extract} [-bcdfmnrtsuvBSV] [-C bytes] [-E file]
[-H format] [-M message] [-R [user][:.][group]] [-I
[[user@]host:]archive] [-F [[user@]host:]archive]
[--file=[[user@]host:]archive] [--make-directories] [--non-
matching] [--preserve-modification-time] [--numeric-uid-gid]
[--rename] [-t|--list] [--swap-bytes] [--swap] [--dot]
[--unconditional] [--verbose] [--block-size=blocks] [--swap-
halfwords] [--io-size=bytes] [--pattern-file=file] [--for-
mat=format] [--owner=[user][:.][group]] [--no-preserve-owner]
[--message=message] [--force-local] [--absolute-filenames]
[--sparse] [--only-verify-crc] [--quiet] [--rsh-command=com-
mand] [--help] [--version] [pattern...] [< archive]

cpio {-p|--pass-through} [-0adlmuvLV] [-R [user][:.][group]]
[--null] [--reset-access-time] [--make-directories] [--link]
[--quiet] [--preserve-modification-time] [--unconditional]
[--verbose] [--dot] [--dereference]
[--owner=[user][:.][group]] [--no-preserve-owner] [--sparse]
[--help] [--version] destination-directory < name-list

DESCRIPTION
GNU cpio is fully documented in the texinfo documentation. To
access the help from your command line, type

info cpio

The online copy of the documentation is available at the fol-
lowing address:

http://www.gnu.org/software/cpio/manual

fc8 和 fc9 的 cpio man pages 內容是一樣的,
man ./fc9/usr/share/man/man1/cpio.1.gz
頁數比 fc7 的 cpio man pages 足足多了六倍.
東西多了, 難怪會漏看了其中的一段話:

The GNU folks, in general, abhor man pages, and create info
documents instead. The maintainer of cpio falls into this
category. Thus this man page may not be complete, nor cur-
rent, and was included in the Red Hat CVS tree because man is
a great tool :).

--
How shall my heart be unsealed unless it is broken?
By Kahlil Gibran

--
Tags: Linux

All Comments

關於製作RPM 檔的疑問

Skylar DavisLinda avatar
By Skylar DavisLinda
at 2008-11-06T21:59
※ 引述《cutter (啦啦)》之銘言: : 小弟是Linux 新手,這幾天在嘗試包裝RPM 檔的時候遇到些問題, : 我現在手上有兩份code,一份是寫好的driver source code,另一 : 份是一各應用程式的執行檔,我想請問的是我要怎麼把這各執行 : 檔在包裝 ...

關於LDP和其(GPLv2)的範例

Lucy avatar
By Lucy
at 2008-11-06T21:55
基本上會問這個問題是因為公司不比學校 所有的文件內容都必須合法.... 假設我沒有引用LDP的文章描述內容, 只用了其中的GPLv2的範例程式 這樣我是否需要以書面內容知會作者呢? 我看LDP授權的內文是, 任何翻譯(translation )和派生(derivative) 都必須有作者的書面同意 雖然我 ...

關於製作RPM 檔的疑問

Una avatar
By Una
at 2008-11-06T20:53
小弟是Linux 新手,這幾天在嘗試包裝RPM 檔的時候遇到些問題, 我現在手上有兩份code,一份是寫好的driver source code,另一 份是一各應用程式的執行檔,我想請問的是我要怎麼把這各執行 檔在包裝RPM 的時候也能被包進去,並且在日後安裝的時候能同 ...

UBUNTU無法登入

Harry avatar
By Harry
at 2008-11-06T20:49
大家好 最近小弟再登入自已的UBUNTU系統的時候 打完帳號密碼後 整個畫面會閃一下 然後又回到登入畫面 一直會沒辦法進入到系統 希望有經驗的人能幫忙一下 感謝 - ...

Ubuntu 8.10更新時出現error

Jack avatar
By Jack
at 2008-11-06T17:35
我是剛使用linux的新手 當我在使用更新管理員檢查更新時 會出現一個error message W: 無法下載『http://security.ubuntu.com/ubuntu/dists/intrepid-security/Release 』檔案。 W: 有一些索引檔案不能下載,它們可能被忽略了,也 ...