If you have any suggestions or comments, and would prefer using email, please contact me at:
gngabriel29[REMOVETHISANDREPLACEWITHYOU-KNOW-WHAT]ymail.com

December 15, 2008

Unpack a package with linux command line

Hi everyone, welcome to today’s tutorial where we will learn how to unpack a package from source code with linux command line.

at command line, type:
tar -xvzf hello-1.tar.gz

note:
-x: used to extract file
-v: tell tar to be verbose about its actions (in this case, to show name of file it is untarring as it untars the files in the tarball)
-z: tell tar to decompress using gzip

-f: tell tar that it is to ‘process’ a file
in this case, the file being ‘processed’ is hello-1.tar.gz
after untarring is finished, you should have a folder called hello-1, specifically the path should be /usr/local/src/hello-1 (as the tarball was in /usr/local/src)
if you have a file with extension of tar.bz2 instead of tar.gz, then use option of -j or -y, instead of -z, if you want to uncompress the file

Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>. I unfortunately do not have a spoiler-code, so be sure mark spoilers well.



Anti-spam measure: please retype the above text into the box provided.