Refine your search:

I'm trying to unpack the app tars, but it isn't working.

E:\Splunk\etc\apps>tar -xvf SplunkforF5.tar.gz 
tar: This does not look like a tar archive 
tar: Skipping to next header 
tar: Exiting with failure status due to previous errors 

E:\Splunk\etc\apps>tar -xvf SplunkforBlueCoat.tgz 
tar: This does not look like a tar archive 
tar: Skipping to next header 
tar: Exiting with failure status due to previous errors 

asked 25 Feb '10, 22:27

Mick's gravatar image

Mick ♦
4.0k1327
accept rate: 52%

edited 24 Mar '10, 18:44

jrodman's gravatar image

jrodman ♦
5.8k2515


2 Answers:

The .gz or .tgz suffix indicates compression. Add a -z to the tar command, to uncompress before untarring:

E:\Splunk\etc\apps>tar -xzvf SplunkforF5.tar.gz
contents of SplunkforF5.tar.gz listed...

E:\Splunk\etc\apps>tar -xzvf SplunkforBlueCoat.tgz
contents of SplunkforBlueCoat.tgz listed...

link

answered 25 Feb '10, 22:29

Mick's gravatar image

Mick ♦
4.0k1327
accept rate: 52%

edited 26 Feb '10, 18:49

V_at_Splunk's gravatar image

V_at_Splunk
8121414

On some .. older.. unix platforms, tar may not natively support compression, in this case, your recipe is as follows:

gzip -d -c SplunkforF5.tgz | tar -xvf -

unpack the gzip to standard out, and then have tar unpack standard in.

link

answered 05 Mar '10, 23:07

jrodman's gravatar image

jrodman ♦
5.8k2515
accept rate: 42%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×207
×3
×2

Asked: 25 Feb '10, 22:27

Seen: 1,535 times

Last updated: 07 Apr '10, 19:23

Copyright © 2005-2012 Splunk, Inc. All rights reserved.