Page 1 of 1

unzipping Tar files

Posted: Tue Apr 28, 2015 1:10 pm
by GE_bill
I am having trouble installing a JSON piece of software on my pi. It is a program to allow the web to access ports on the PI. Currently the file exists in the "Downloads" directory. When I unzip this will it unzip to a certain location or must I specify the location?

How Do I unpack a tar file anyways?

Thank you

Re: unzipping Tar files

Posted: Tue Apr 28, 2015 1:14 pm
by DougieLawson
tar xavf foobar.tar.gz

xavf = eXpand Any Verify File

The a flag means that tar looks at the magic number in the input file to determine whether it's compressed and if it it whether that's gzip, bzip2 or pkzip. The v flag means display what's being extracted from the tar file while it's being read. The x and f flags are obvious.

Re: unzipping Tar files

Posted: Tue Apr 28, 2015 1:15 pm
by joan
From the command line

to view the contents of the archive file.

tar tvf file

and to extract use

tar xvf file

I'm not sure what is bundled with Raspbian but you could try ark if you want a graphical front-end.