Re: [心得] Fedora 9 的 CPIO man 是錯的???
我用的系統是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
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.8.136
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 4 之 5 篇):