LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2009, 06:58 AM   #1
yasasvi srikanth
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Rep: Reputation: 0
Unable to install softwares with ".tar.gz,.tar.bz2" extension


Dear friend,

The os i am using is RHEL5.
I have problem in installing software with the extension ".tar.gz" or".tar.bz2" .

First if we extract from a media ,how can we specify the destination folder"?
Is extracting by commands and with archival roller same?

After extracting what should we do to install?
 
Old 09-11-2009, 07:03 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
tar.bz2 are compressed packages, not proper archive formats (most times, anyway). They can contain *anything*, just like a zip or a rar file. So you will have to look what's into it and act accordingly. Sometimes it's a binary package, sometimes it's source code that you will have to compile. Either way, you should be able to find an INSTALL or README file inside of it. Open it with a text editor and follow the instructions.
 
Old 09-11-2009, 07:13 AM   #3
ivanmacx
Member
 
Registered: Apr 2006
Location: Cambridge, UK
Distribution: Ubuntu Jaunty
Posts: 45

Rep: Reputation: 16
Look at the tar man pages:

Code:
man tar
for information about command line options to untar. For .tar.gz files use:

Code:
tar -xvzf filename
and for .tar.bz2 files use:

Code:
tar -xvjf filename
Best way to untar to a specific directory is to go to that directory and then run the tar command from there, so if the tar file is tarfile.tar.gz and it's in the /home/user directory and you want to extract to the /tmp directory:

Code:
cd tmp
tar -xvzf /home/user/tarfile.tar.gz
Not sure about using the archive roller but I suspect that will work as well.

As to how you install the software it will depend upon the software so you'll need to check the site where you obtained it for instructions.
 
Old 09-11-2009, 07:18 AM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Redhat distro installs or uses *.rpm packages. This means you should look for packages that have .rpm extensions. Or build it your self using "./configure" "make" "make install" commands inside the folder where the files were extracted from .tar.gz or tar.bz2 archives.

Read your RHEL5 documentations at /usr/doc/folders.

hope it helps.
 
Old 09-11-2009, 10:38 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,149

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
90 % of the tarballs i come across work like this
Code:
tar -xvjf *.tar.bz2
 -or-
tar -xvzf *.tar.gz
cd <newly-created-directory>
./configure && make && sudo make install
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install ".tar.gz" and "tar.bz2" grapeape25 Linux - Desktop 4 08-14-2006 04:01 AM
how do you install programs extracted from "tar.gz", "bz2", etc? shoelessworm Ubuntu 13 04-12-2006 03:24 PM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 02:54 AM
How you install file with TAR.BZ2 extension?.. thanks suse2166 Linux - Software 14 01-03-2005 05:55 PM
compiling tar.bz2... "./configure make make install" doesn't work dodo1983 Linux - Newbie 7 08-17-2004 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration