Problem with the tar -xvf command

Posted on 2002-03-21
Last Modified: 2012-06-21

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


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
Question by:hawkers
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 11

Accepted Solution

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 ...

LVL 40

Expert Comment

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.
LVL 11

Expert Comment

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'.


Author Comment

ID: 6885467
Thanks guys

Author Comment

ID: 6885472
Thanks guys

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

628 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