LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 11-03-2006, 02:01 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
extracting cpio.gz file?


Hello,

I am using Debian and I have this cpio.gz file and I would like to extract it makes some changes in it and then again compressed it in cpio.gz file.

Can anyone give me step by step procedures?

Thanks
 
Old 11-03-2006, 02:54 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,743
Blog Entries: 54

Rep: Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972
To extract make a tempdir to be safe, cd into it and then "zcat /path/to/name.cpio.gz | cpio -idv".
To compress (asserting you're in the tempdir) "find ../tempdir | cpio -o | gzip > /path/to/newname.cpio.gz"
If you need full path names or none play with the "find ../tempdir" path part or look in cpio's man page.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to copy a 6 GB file with cpio SvenJ Linux - General 4 03-17-2006 07:28 AM
cpio file formats ziggy25 Linux - Software 3 10-31-2005 06:21 PM
unable to cpio the file ashley75 Linux - General 2 06-03-2005 09:29 AM
CPIO will not extract File stress Linux - Software 2 07-22-2004 02:04 AM
cpio list file ust Linux - General 1 03-11-2004 08:10 AM


All times are GMT -5. The time now is 07:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration