need help about .tar.gz extensions

Discussion regarding the installation and configuration of Linux distributions.
Posts: 5
Joined: Thu May 22, 2003 1:13 am
Location: Lahore

need help about .tar.gz extensions

Postby ecstasy » Thu Jun 05, 2003 1:38 am

salamo alikum, i am new to linux, i am using redhat 9, please tell me about .tar files, i want to install netscape, plese tell me hot to handle these kinds of extension and how to run set up,
take care
Keep Smiling!

Site Admin
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
Location: Addison, IL

Postby fawad » Thu Jun 05, 2003 8:46 am

.tar.gz is composed of two components.

.tar: tar stands for 'tape archive'. It's a simple archiving mechanism standard for all Unixes. It just packs a bunch of files into one. No compression is done
.gz: is created from the gzip command. This command compresses 1 file and appends the .gz extension to it.

Therefore, to create a compressed archive of multiple files, you create a .tar.gz (tarball for short) file. As the tar and gzip are done in that order, to undo them (equivalent of unzipping), you first gunzip, then untar. For example, for file

, first you do
gzip -d foo.tar.gz
to get
upon which you do
tar -xvf foo.tar

These can be combined into

tar -zxvf foo.tar.gz

That said, you can just use ark to do these operations from the GUI (it's the *NIX frontend to tar, gz, bzip2, zip etc.).

Good luck with your linux adventures.

Return to “Installation”

Who is online

Users browsing this forum: No registered users and 1 guest