LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to extract and install from .tar.gz and .tar.bz2 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-extract-and-install-from-tar-gz-and-tar-bz2-681967/)

wstay 11-08-2008 08:24 AM

How to extract and install from .tar.gz and .tar.bz2
 
I need to install from .tar.gz and .tar.bz2
How can I extract and install from these two files type.
Any help would be much appreciated.

klearview 11-08-2008 08:30 AM

tar.gz/bz2 is an archive.

Extract it:

tar xvf package.tar.gz

Go into created directory.

cd package

Read README or INSTALL file usually provided in that directory:

cat README | less.

Then usual steps would be:

./configure

make

make install

But this may vary - read instructions!

colucix 11-08-2008 09:24 AM

Quote:

Originally Posted by klearview (Post 3335320)
tar.gz/bz2 is an archive.

Extract it:

tar xvf package.tar.gz

Well... to uncompress a gzipped archive using the tar command, you have to add the -z option:
Code:

tar zxf archive.tar.gz
whereas to uncompress a bzipped archive you have to add the -j option:
Code:

tar jxf archive.tar.bz2
Regarding the installation issues, I agree with klearview: read the README and INSTALL files inside the archive itself and look for any specific issue related to your operating system and/or the built environment (compilers, type of CPU and so on...). Always check the developer's web site to find out more specific information about the requirements and the installation procedure.

As a general overview, you can look at this sticky thread, here at LQ.

Nylex 11-08-2008 09:42 AM

Actually, if the version of tar you're using is sufficiently new, you don't even need to specify the 'j' or 'z' - tar xf filename will do it.

colucix 11-08-2008 10:14 AM

Quote:

Originally Posted by Nylex (Post 3335362)
Actually, if the version of tar you're using is sufficiently new, you don't even need to specify the 'j' or 'z' - tar xf filename will do it.

You're right, sorry. I stand corrected.


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