Sponsored Content
Operating Systems AIX Unable to gunzip .tgz file in AIX6.1 Post 302449751 by bakunin on Tuesday 31st of August 2010 11:08:19 AM
Old 08-31-2010
Quote:
Originally Posted by pilotHans
Code:
# tar -xvf apache-2.2.14_openssl-0.9.8k_modjk-1.2.26_aix53.tar.gz

This won't work, because tar can only work on tar-files, not on gz-files. A ".tar.gz" file is a file in tar-format, which was packed into a ".gz."-file. (Think of it like a package wrapped into another package.) To unpack it, you have to unwrap one level after the other:

Code:
gzip -cd <file.tar.gz> | tar -xf -

gzip is asked to decompress (unpack) the file ("-d") and to send the result to <stdout> ("-c"), into a pipeline. At the end of the pipeline tar receives this file ("-f -") from <stdin> and further unpacks it ("-x").

Quote:
Originally Posted by pilotHans
my method of transferring file -> I used WinSCP to download the file from a server to my local machine > then from my local machine I ftp to the remote aix machine.
There are two possible places where something might have gone wrong: when you transferred the file to your local system from the internet and when you transferred it from there with ftp. You made sure the second step is correct by using "bin" inside ftp, but maybe this error occurred in the first step. Download again from the internet and make sure you use "binary" there too when you do so.

Quote:
Originally Posted by pilotHans
3) is it because the .gzip was compiled in non aix?
You should be able to unpack the files correctly, even if you cannot run the unpacked executable. The tar-format and the gzip-format are both universal and the file(s) should unpack without problems. To *run* the resulting files is a different matter, of course. You will need *binaries* for your system, even if some shell-scripts(?) for installation purposes might be able to run on your architecture.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

*.tgz file on WinXP

Could anyone of y'all gurus tell me of how to open *.tgz files in WinXP....which program should i use to open it...i have tried going online to open it ut all in vain...please help Gerry... (5 Replies)
Discussion started by: gerald_agoi
5 Replies

2. UNIX for Dummies Questions & Answers

file.tgz.1of2 & file.tgz.2of2

Hi all, Need help. Anybody seen this kind of file before? file.tgz.1of2 file.tgz.2of2 how to extract this tgz file? Any help? Tq (5 Replies)
Discussion started by: zeedwolf
5 Replies

3. UNIX for Advanced & Expert Users

how to grep/read a file inside compressed tgz without extract?

Hi all, I would like to ask whether in Unix shell/perl have any functions or command to allow grep/cat/read a file inside compressed .tgz without extract it? I know we can tar tvf a compressed tgz but this only allow we read the path/filename contained inside the tarball. If we want to read... (3 Replies)
Discussion started by: mayshy
3 Replies

4. Shell Programming and Scripting

How to move files to existing .tgz file?

Hi, I have already created the tar files. which consist of some log files and Audit.csv plz see the below code for that ================================================ tar -Pczf ARCH/${arc_date}.tgz $LOG/*.log $REYE/CEP/FiAdapter/Audit.${arc_date}.csv ... (3 Replies)
Discussion started by: pspriyanka
3 Replies

5. Shell Programming and Scripting

How to create tgz file for all the directories in one time?

Hi, On server there is an one folder . which contains sub folder Eg - TEST folder contains test1, test2, execr ,tt (folder). also includes some text file like abc.txt psp.txt gg.log. here iwant to create tgz file for all the folders and file in one time. I know the command... (1 Reply)
Discussion started by: aish11
1 Replies

6. AIX

AIX6.1 Remove file descriptor from specified process

Hi, How to release file description area from specified process. Problem is that process started - open one file ( ~2GB ) - file has been removed - process still shown that file is used by process and can't release space on filesystem. It is not allowable to kill process !!! Regs,... (3 Replies)
Discussion started by: KrzysiekPi
3 Replies

7. UNIX for Dummies Questions & Answers

How to create .tgz file without creating .tar file?

Hi, Could anyone help me in providing command to generate .tgz file without creating .tar file? currently i am using below command for doing the same but if tar file has big size and there is no space in drive then tgz file will not be generated. I want to generate tgz file directly without... (4 Replies)
Discussion started by: Pawan Kumar
4 Replies

8. AIX

How to install .tar.tgz file in AIX 6.1?

Hello, I have openssl.0.9.8.1103.tar.tgz file which I have downloaded from https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=aixbp&S_PKG=openssl siteThe website says that the file name is openssl.0.9.8.1103.tar.z but when downloaded I get openssl.0.9.8.1103.tar.tgz as the... (2 Replies)
Discussion started by: gaugeta
2 Replies

9. Shell Programming and Scripting

Gunzip a file in UNIX

hi All, i have a file called rsync-3.0.9.tar.gz, i have to unzip and then uncompress it. but at first while i am trying to unzip this file, it is giving me following error: -rw-r--r-- 1 bravodba bravodba 7278458 Aug 19 08:26 rsync-3.0.9.tar.gz bash-3.2$ unzip rsync-3.0.9.tar.gz Archive: ... (12 Replies)
Discussion started by: lovelysethii
12 Replies

10. Red Hat

Unable to extract .gz file using gunzip

Linux 3.8.13-16.2.1.el6uek.x86_64 #1 SMP Thu Nov 7 17:01:44 PST 2013 x86_64 x86_64 x86_64 GNU/Linux Hi all, I am unable to extract .gz file using gunzip Used the following command to create the .gz file: nohup tar -cvpf - 11.2.0.4 | gzip -c >... (3 Replies)
Discussion started by: a1_win
3 Replies
All times are GMT -4. The time now is 07:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy