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.