User avatar
GE_bill
Posts: 32
Joined: Thu May 10, 2012 2:42 am
Location: Milwaukee WI

unzipping Tar files

Tue Apr 28, 2015 1:10 pm

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

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: unzipping Tar files

Tue Apr 28, 2015 1:14 pm

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.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: unzipping Tar files

Tue Apr 28, 2015 1:15 pm

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.

Return to “Beginners”