Computing.Net > Forums > Linux > tar.gz files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

tar.gz files

Reply to Message Icon

Name: frink36
Date: November 4, 2002 at 17:07:02 Pacific
OS: Mandrake 9
CPU/Ram: k6-2/96
Comment:

ok. I know i asked this question before, but i didnt really get a full answer. I know you have to use the console to uncompress tar.gz files, when i do that (go to the dir. tar -[4 letters i can never remember] filename. A bunch of files unzip. Or i can click on the actual tar.gz in Nautlilus and it goes into the folder the was inside. Then what do I do? How do i actually install the software. Must warn: Very new to Linux!



Sponsored Link
Ads by Google

Response Number 1
Name: HippieJoe
Date: November 4, 2002 at 17:48:32 Pacific
Reply:

in the command line do as follows...

cd /directory/where/tar/is

ls (notice files and directorys)

tar -xvzf filename

ls (there is a new directory with name similar to tar file)

cd /file*

(this is done because when you untar a file it creates a directory where all the uncompressed files go...you will see the new directory in an ls statement)

./compile

make

make install

...that shoudl be it....good luck


0

Response Number 2
Name: Guy
Date: November 4, 2002 at 17:59:27 Pacific
Reply:

Not:

./compile

but:

./configure

G.


0

Response Number 3
Name: arnold
Date: November 4, 2002 at 18:01:22 Pacific
Reply:

I always first
tar -ztvf TheTarFile|less

This lets me see where the files are going to be placed when I tar -zxvf. 99/100 times HippieJoe is correct. but there is always that 1%.



0

Response Number 4
Name: Don Arnett
Date: November 4, 2002 at 18:13:24 Pacific
Reply:

"this is done because when you untar a file it creates a directory where all the uncompressed files go...you will see the new directory in an ls statement"

That isn't totally correct. The default is that the files are put back in the same path (relative to the current directory) that they were copied from.

For example, if I issue a tar command:

tar cvf mytarfile.tar directory1

then directory1 and all of it's contents will be tarred into the file mytarfile.tar. When you extract from mytarfile.tar, the files will be put back into the directory directory1 (tar will create the directory if necessary).

But if the tarred files are not in a directory, they won't be put back in a directory.

For example, if I issue the tar command:

tar cvf mytarfile.tar *.txt

then all of the .txt files in the current directory will be copied and when I untar, they will be put in the current directory.

As Arnold suggested, it's good to do a 'tar tvf' command to view the listing of the tar file to see what's in it.


0

Response Number 5
Name: frink36
Date: November 5, 2002 at 12:36:16 Pacific
Reply:

thanks for all the help.


0

Related Posts

See More



Response Number 6
Name: Sarah
Date: November 6, 2002 at 04:08:54 Pacific
Reply:

What if the tar.gz file is on the CD (for example on an installation CD), and I want to install it? How do I path the directory to unzip it correctly and install?

This may sound dumb but I'm a Linux newbie too.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: tar.gz files

installing tar.gz files www.computing.net/answers/linux/installing-targz-files/1996.html

Creating a .tar.gz file www.computing.net/answers/linux/creating-a-targz-file/18025.html

OPENING a .tar.gz file on redhat www.computing.net/answers/linux/opening-a-targz-file-on-redhat/12811.html