Click to See Complete Forum and Search --> : How do I install a TAR file


Billy Joe Jim Bob Jr.
09-23-2001, 08:58 AM
I read the NHF on compiling software and I get an error message that says the file is not in the gzip format. The file ends in .tar not tar.gz, what am I doing wrong?

Urko
09-23-2001, 09:26 AM
tar xvzf foo.tar.gz
becomes
tar xvf foo.tar <===== notice no z

xh3g
09-23-2001, 03:44 PM
tar zxvf filenamt.tar.gz:
z - pipe the tar file through gzip
x - extract
v - be verbose (print lots of stuff to the screen)
f - filename (hence f must be the last switch, as the filename must follow it)


if it's just a tar "tar xvf filename.tar" will work.

if it's a .tar.bz2 it depends on the version of tar you have, which can vary from distrobution to distrobution, but it's probably either "tar yxvf filename.tar.bz2" or "tar Ixvf filename.tar.bz2"

[ 23 September 2001: Message edited by: xh3g ]

X_console
09-23-2001, 05:38 PM
If it says it's not in gzip, then try doing passing it to the file command:

file myfile.tar.gz

See what the output is. It might be that it's just archived and not compressed, in which case tar xvf myfile.tar.gz should suffice.

paulb
09-23-2001, 05:44 PM
Heres the NHF (http://www.linuxnewbie.org/nhf/intel/compiling/softinstall.html)