1752811 Members
6351 Online
108789 Solutions
New Discussion юеВ

CPIO

 
SOLVED
Go to solution
KPS
Super Advisor

CPIO

Hi,

I'm not really too knowledgeable about cpio, since I 99% of the time use tar. I have just downloaded some software that I have to extract and it's in cpio format. Can anyone tell me they syntax on how I would extract a cpio in the following directory:

/archive/olite_50200_linux.cpio

I have looked at the man pages for this and still haven't seemed to have any luck.

Thanks in advance.
3 REPLIES 3
James A. Donovan
Honored Contributor
Solution

Re: CPIO

I would think that it would simply be...

cd /archive
cpio -od < olite_50200_linux.cpio

Remember, wherever you go, there you are...
Mic V.
Esteemed Contributor

Re: CPIO

I don't use it frequently either, but one thing I've run into is that if you don't know how it was written, you may end up going through several iterations of switches to figure out the correct "unpacking" command. Keep re-reading the man page and try new things if at first you don't succeed, or post the results here and someone can help.
What kind of a name is 'Wolverine'?
V. V. Ravi Kumar_1
Respected Contributor

Re: CPIO

Hi,
you have check out for options, how it was created while archieved.

#cpio -icv < /archive/olite_50200_linux.cpio should extract the contents to pwd.

you may also try options -icvBdm to extract.


ravi
Never Say No