LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   TAR.gz (https://www.linuxquestions.org/questions/linux-software-2/tar-gz-96444/)

ramzi 09-24-2003 04:52 PM

TAR.gz
 
what are tar.gz and tar.bz2 and how to make use of them?

in other words how do i install softwares? if you dont want to go through details just post a link :);)

david_ross 09-24-2003 05:01 PM

They are compresed archives you can "unzip" them with:
tar -xzf myfile.tar.gz
tar -xjf myfile.tar.bz2

There is usually a file called README or INSTALL that tells you how to use/install the software within. Also take a look a jeremy's "Linux Answer":
http://www.linuxquestions.org/questi...ticle&artid=15

DrOzz 09-24-2003 05:03 PM

they are compressed files type ::
tar -zxvf filename.tar.gz to extract tar.gz
tar -jxvf filename.tar.bz2 to extract tar.bz2
and usually they are source files for installing stuff, that is not always the case, but its most often true...and a typical procedure to take is to cd into the extracted directory and run::
./configure
make
su -c "make install"

this is not always the case, and thats why there is a README and INSTALL file usually packed with these so read them and see what you actually have to do to run/install whatever you may have...

mikeshn 09-24-2003 05:17 PM

Re: TAR.gz
 
Quote:

Originally posted by ramzi
what are tar.gz and tar.bz2 and how to make use of them?

in other words how do i install softwares? if you dont want to go through details just post a link :);)

Or

#tar.gz
gunzip file.tar.gz
tar -xvf file.tar


#tar.bz2
bunzip2 file.tar.bz2
tar -xvf file.tar.bz2


All times are GMT -5. The time now is 02:45 AM.