Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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