LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tar gz files (https://www.linuxquestions.org/questions/linux-newbie-8/tar-gz-files-3257/)

athenerx 06-10-2001 09:01 PM

how can I extract and install a file that come in format of tar and gz

mcleodnine 06-10-2001 09:09 PM

Quote:

Originally posted by athenerx
how can I extract and install a file that come in format of tar and gz
I cheat :)
Code:

tar -xvzf yourfile.tar.gz
Annoyed by those looonng cryptic names like 'mysql-2.3.9-alpha-i386.tar.gz'? Autocomplete it with the <TAB> key.
Code:

tar -xvzf mysql<TAB>
now that the file is extracted, cd to the folder and read the README and INSTALL files.


Rackemup 06-13-2001 01:20 PM

hmmm... I've been using

gunzip < filename.tar.gz | tar -xvf

to extract the files to my current location... maybe I've been doing things the hard way.

ugge 06-13-2001 03:17 PM

Quote:

Originally posted by mcleodnine
I cheat :)
Code:

tar -xvzf yourfile.tar.gz

I think that the option z must be first, like this tar -zxvf yourfile.tar.gz.
I have sometimes had trouble when z isn't the first option.


All times are GMT -5. The time now is 09:41 AM.