1833589 Members
4155 Online
110061 Solutions
New Discussion

tar.gz file

 
jim keen
New Member

tar.gz file

if you download a tar.gz file and it is 26.9 meg. how do you export it to a hp ux server and uncompress it. can i burn it to a cd and then export it, uncompress it and install it?
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: tar.gz file

You can FTP it to your unix machine. Make sure you use BINARY mode in FTP.

Once there do:

# gunzip file.tar.gz

This will result in file.tar

# tar -tvf file.tar

This will show you what is in the tar file. To actually extract the contents of the file do:

# tar -xvf file.tar
H.Merijn Brand (procura
Honored Contributor

Re: tar.gz file

Or in a single thread

see what's in it:
# gzip -d < file.tar.gz | tar tvf -
extract
# gzip -d < file.tar.gz | tar xvf -

or when using GNU tar

see content
# gtar tzvf file.tar.gz
extract
# gtar xzvf file.tar.gz

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Robert-Jan Goossens
Honored Contributor

Re: tar.gz file

Hi,

And check if you have gzip.

http://hpux.connect.org.uk/hppd/hpux/Gnu/gzip-1.3.5/

Regards,
Robert-Jan
Guillermo Giron
Occasional Contributor

Re: tar.gz file

follows the steps:

1. FTP server
2. binary
3. put filename.tar.gz
4. bye
5. telnet server
6. go to the directory where this the file
7. gunzip filename.tar.gz
8. tar -xvf filename.tar

Terry Meager
New Member

Re: tar.gz file

This process was successful.
Operating system: HP-UX 11i
Downloaded version:
mysql-standard-4.1.8-hpux11.11

The mysql installation section lists initial procedures:

1: shell> groupadd mysql
When i did this i got:
group 'mysql' not unique
2: shell> useradd -g mysql mysql
When i did this i got:
login 'mysql' not unique
3: shell> cd /usr/local

should I have skipped 1 & 2 and gone directly to 3 since i had already run the gunzip and tar procedures?
B. Hulst
Trusted Contributor

Re: tar.gz file

use remote shell

On the destination machine:

cd /home/destdir

Now open on the machine where the .tar.gz file resides the rsh connection and extract the files.

rsh sourcehost "gzcat /home/datafile.tar.gz" | tar xvf -

br,
Bob

B. Hulst
Trusted Contributor

Re: tar.gz file

Oops, rsh is not in hpux but solaris.

Use remsh... ;-)