Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Problem with the tar -xvf command

Posted on 2002-03-21
Medium Priority
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 400 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
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…
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.

704 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