rozdil v zobrazeni obsahu RPM v MC (RH 6.1 a 6.2)
Milan Kerslager
milan.kerslager na spsselib.hiedu.cz
Pátek Únor 9 00:17:46 CET 2001
On Thu, 8 Feb 2001, Ji?í Mlíka wrote:
> P.S. Co znamená cpio?
$ man cpio
CPIO(1L) CPIO(1L)
NAME
cpio - copy files to and from archives
[...]
DESCRIPTION
This manual page documents the GNU version of cpio. cpio
copies files into or out of a cpio or tar archive, which
is a file that contains other files plus information about
them, such as their file name, owner, timestamps, and
access permissions. The archive can be another file on
the disk, a magnetic tape, or a pipe. cpio has three
operating modes.
[...]
Cili je to nastroj pro manipulaci s archivy. Umi format cpio (prekvapive)
a take tar. Podivam-li se na velikosti, tak zjistim:
$ ls -l /bin/cpio /bin/tar
-rwxr-xr-x 1 root root 45712 úno 9 2000 /bin/cpio
-rwxr-xr-x 1 root root 144592 úno 9 2000 /bin/tar
$
Take proto je cpio velmi oblibene (zejmena na bootovacich disketach,
ruznych minimalnich verzich Linuxu a podobne). Rekl bych, ze na ruznych
starsich Unixech najdete s vetsi pravdepodobnosti cpio nez tar. To by mohl
byt dalsi duvod. V MC muze byt duvodem to, ze kdyz uz umi MC zobrazit cpio
a tarove archivy cpio umi, tak je lepsi pouzit to cpio. Vysledne archivy
jsou navic v cpio formatu mensi. Zkuste:
tar cvf test.tar adresar
find adresar | cpio -oBv > test.cpio
--
Milan Kerslager
E-mail: milan.kerslager na spsselib.hiedu.cz
WWW: http://www.spsselib.hiedu.cz/~kerslage/
Další informace o konferenci Linux