Solved

Problem with the tar -xvf command

Posted on 2002-03-21
5
1,354 Views
Last Modified: 2012-06-21
Hello

I am trying to run the tar command to unzip a version of the apache server onto SUN Solaris 8. However I am keep recieving and error.

Command used

tar -xvf apacheserverzipname.tar.Z


Error

tar: directory checksum error

This error keeps ocurring. I have tried removing and re ftp-ing the file, I have used chmod 755.

I would like your advice of where I may be going wrong and what I should  do next.

Thanks in advance
0
Comment
Question by:hawkers
  • 2
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
griessh earned 100 total points
ID: 6885427
This file is tared AND zipped.

Do a '(g)unzip apacheserverzipname.tar.Z' first, you will get a apacheserverzipname.tar file that can be untared ...

======
Werner
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6885432
The file you've downloaded is compressed and needs to be decompressed before tar can read it. You can do one of two things. Either decompress and untar on the fly with:

zcat apacheserverzipname.tar.Z | tar xvof -

or decpmpress the file and then untar the result with:

uncompress apacheserverzipname.tar.Z
tar xvof apacheserverzipname.tar

FYI: the 'o' argument to tar will change the file ownership of the extracted files to be that of the user that unpacks the archive. Otherwise the files will retain the ownership of who ever created the archive.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6885443
The zip is a compression usually done to use storage better and make the download faster. The tar is the raw packaging of the files and directories they do do create ONE file from a set of files.

There are different zip programs available.
'zip/unzip' is the native version that comes with most UNIXs. It is not very eficient, that why many people use the GNU version 'gzip/gunzip'.

======
Werner
0
 
LVL 2

Author Comment

by:hawkers
ID: 6885467
Thanks guys
0
 
LVL 2

Author Comment

by:hawkers
ID: 6885472
Thanks guys
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question