Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Where to get a Soaris 2.6 compatible tar/compress utility which can be run on Linux?

Posted on 2002-07-24
8
Medium Priority
?
346 Views
Last Modified: 2013-12-27
Hi,

I have a tar archive which is created by SUN Solaris 2.6 tar utility. Since I cannot access any Solaris system, i tried to extract it on my Redhat linux PC. When I run the command "tar xf fileName.tar", the screen said :
- tar:skipping to next header
- ......
- tar: Error exit delayed from previous errors

It seems I need a Solaris 2.6 compatible tar which can be run on linux, where to get it and how? I also need a Solaris compatible compress utility because the archive contains ".Z" file.

Thanks for help.

Victor
0
Comment
Question by:victorli
[X]
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
  • 4
  • 3
8 Comments
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 7176380
look in the www.sunfreeware.com/
you have zip and tar utility. (gnu)
0
 
LVL 40

Expert Comment

by:jlevie
ID: 7177302
The tar program on your Linux box showuld be able to handle the archive fine. Since you say that it is a compressed tar archive, try 'tar xvzof file.tar.Z'. That will decompress the file on the fly and untar it into the current directory.
0
 
LVL 1

Author Comment

by:victorli
ID: 7178557
Thanks for all your response.

The file format is like "fileName.tar", according to the documentation, I should use "tar cvph fileName.tar" to extract the file and get some "*.Z" files, then i need to use "uncpmpress *.Z" to uncompress these *.Z files.

I am not an expert with both Linux and Solaris. Pls give some detailed instructions.


0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 40

Expert Comment

by:jlevie
ID: 7178654
First find out if the tar archive is compressed with 'file some-name.tar'. That should yield a result like:

wilowisp> file sol-2.6.tar
sol-2.6.tar: POSIX tar archive

if the archive isn't compressed. If it is, and not named as such you'd see:

wilowisp> file sol-2.6.tar
sol-2.6.tar: compress'd data 16 bits

Assuming an ordinary archive you can extract it's contents with:

wilowisp> tar xvof sol-2.6.tar
web/
web/doc-file.vor
web/doc-top.vor
web/dot-Xdefaults.html
...

and if it was a compressed archive with:

wilowisp> tar xvzof sol-2.6.tar
web/
web/doc-file.vor
web/doc-top.vor
web/dot-Xdefaults.html
...

The above examples were done by creating a tar archive on a Solaris 2.6 system and examining the archive on a RedHat 7.3 system.
0
 
LVL 1

Author Comment

by:victorli
ID: 7178908
Thanks jlevie,

The screen displays "fileName.tar: POSIX tar archive" when using "file" command to examine it. But when I used "tar xvof" to untar the file, the screen said:

tar: Skipping to next file header
tar: Archive contains '...' where numeric off_t value expected
tar: Archive contains '...' where numeric time_t value expected
tar: Archive contains '...' where numeric mode_t value expected
...

The screen also displayed lots of unrecognized characters.

The documentation about the file also says "The file will also have been compressed by BDE batch process. Once untarred they will need to be uncompressed using Unix command "uncompress *.Z").

It seems some files are compressed to ".Z" files and then be tarred to this single ".tar" file. I am facing the problem how to untar the file without any error.

Actually I had considered the file may be corrupted, but the provider said it's no problem.
0
 
LVL 1

Author Comment

by:victorli
ID: 7178911
Sorry, forgot to tell my Red Hat linux version, it is 7.0
0
 
LVL 40

Accepted Solution

by:
jlevie earned 800 total points
ID: 7179023
If is file that you are attempting to un-tar one that was downloaded? If so did you use binary mode in an FTP download?

It really sounds like the tar archive is damaged and if it was downloaded in other than binary mode it would be damaged.
0
 
LVL 1

Author Comment

by:victorli
ID: 7218801
I think the file is damaged.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

650 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