SysAdmin Blog, TechTips and Reviews

Unix Basic Commands and Interview Questions/Answers



Useful commands to extract packages

May 18th, 2012 by elizar

Useful commands to extract packages:

To extract a *.tar file: tar xvf package.tar
To extract a *.cpio.Z file: zcat package.cpio.Z | cpio -idmV
To extract a *.gz file:  gunzip package.gz
To extract *.tar.gz file: guznip package.tar.gz; tar xvf package.tar
To extract *.dstream.Z file: uncompress package.dstream.Z; pkgtrans package.dstream . all
To extract *.zip file: unzip package.zip

yeah sure, citi’g gonna give me a memo for this

Filed under Uncategorized having 4 Comments »

4 Responses

  1. Berrot Says:

    For *.tar.gz, why not just use:
    tar xvfz package.tar.gz

  2. D Says:

    How about tar zxvf package.tar.gz for .tar.gz files?

  3. elizar Says:

    yes, that is also true.. we can add that

  4. Black Bird Says:

    This is how we do it Emma.. Name, URL and Comment.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

I was here...