LinuxQuestions.org
Register a domain and help support LQ
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 11-23-2010, 04:26 AM   #1
th_matt
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Rep: Reputation: 0
Question How to install a .tar.bz2 file


I am using linux for the first time. My linux distribution is RedHat 5.4 on a VMWare. On this machine, I went online and downloaded mozilla firefox.

The file I received is firefox-3.6.12.tar.bz2. I have tutorials on how to install from the rpm and yum commands, but these do not help when installing a .tar.bz2 file. Please explain how I can install this file.
 
Old 11-23-2010, 04:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
I would advise that you don't install it. Just get an rpm instead. or on rhel, "yum install firefox" will get you the latest official version as packaged by redhat for security and stability.

Note that you don't "install" tar.bz2 packages, it's a generic archive, and I'm sure you wouldn't ask how to install a zip file, right? exactly the same here.... you would decompress it... "tar jxvf blah.tar.bz2" and then go into the directory that is created and then install in there from whatever mechanism is provided, of which there are many many options, including totally bespoke ones that can be unique to that package. (i.e. just like it can be on windows)

Last edited by acid_kewpie; 11-23-2010 at 04:38 AM.
 
1 members found this post helpful.
Old 11-23-2010, 04:36 AM   #3
T0sh1r0
Member
 
Registered: Oct 2010
Location: Liège, Belgium
Distribution: Debian / Slackware
Posts: 47
Blog Entries: 1

Rep: Reputation: 7
You should try to install via the standard package management system of your distribution. It's always safer and easier. I am not using Fedora but I guess somewhere in the menu you should find the package manager. Open it and look for firefox there.

FYI, the file you downloaded is an archive. You should be able to open it with the tar command. The best is to look a the documentation (in a console type
Code:
man tar
)
 
1 members found this post helpful.
Old 11-23-2010, 04:40 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
I think you are using RHEL which doesn't support yum free of cost.Better install CentOS or Sceintific Linux if you not using legal copy of RHEL.

For installing any source do this as root
Code:
tar -jxvf firefox-3.6.12.tar.bz2
Code:
cd firefox-3.6.12
Code:
./configure
Code:
make
Code:
make install

Last edited by prayag_pjs; 11-23-2010 at 04:42 AM.
 
1 members found this post helpful.
Old 11-23-2010, 04:54 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
Originally Posted by prayag_pjs View Post
For installing any source do this as root
Code:
tar -jxvf firefox-3.6.12.tar.bz2
Code:
cd firefox-3.6.12
Code:
./configure
Code:
make
Code:
make install
Disclaimer... this is NOT the "normal" way to install software as and end user / newbie, you do not really want to do this by default *unless* you know you need to.
 
1 members found this post helpful.
Old 11-23-2010, 04:56 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,496

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
The best way is to use the package manager or the rpm file.

You don't need to compile firefox.
Just untar the archive, cd to the created directory and start firefox
In general I install firefox in /opt (when I want a more current version then the package manager provides, or to test the beta version)

Code:
cd /opt
tar -jxvf /path/to/firefox-3.6.12.tar.bz2
to start firefox
Code:
/opt/firefox/firefox
Kind regards
 
1 members found this post helpful.
Old 11-23-2010, 05:34 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
Originally Posted by repo View Post
You don't need to compile firefox.
Just untar the archive, cd to the created directory and start firefox
Well exactly....!
Quote:
Originally Posted by acid_kewpie View Post
Note that you don't "install" tar.bz2 packages, it's a generic archive, and I'm sure you wouldn't ask how to install a zip file, right? exactly the same here.... you would decompress it... "tar jxvf blah.tar.bz2" and then go into the directory that is created and then install in there from whatever mechanism is provided, of which there are many many options, including totally bespoke ones that can be unique to that package. (i.e. just like it can be on windows)
 
1 members found this post helpful.
Old 11-23-2010, 05:34 AM   #8
th_matt
LQ Newbie
 
Registered: Nov 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you Chris for explaining that you dont install a .tar.bz2 file and repo and Prayag for the tar command options (-jxvf).

Chris you advised getting an rpm instead of the archive file to install firefox. Please let me know where I can get this. I searched the Mozilla Firefox site but could not find it. If there is a link to the RPM, please paste it here.

Oh and also, wierdly, when I start firefox, it opens the firefox that is installed with RHEL (an older version) and not from the unzipped directory. (I do a cd to the unzipped directory and just type in firefox in terminal)

Last edited by th_matt; 11-23-2010 at 05:38 AM.
 
Old 11-23-2010, 05:42 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Well as prayag_pjs pointed out, you are in a dubious situation running RHEL. You are either commercially licensed, and therefore can install from RHN, or you are not licensed and therefore have no formal repositories to go to. If you are not licensed then that's not illegal, but a pointless position to be in, and I woudl recommend switching to CentOS instead. This is actually *very* simple to do though, just install the CentOS-release RPM to replace the installed redhat-release package and it will (afair) configure the system to use CentOS online repositories with yum automatically. Your installation logos and other frilly nonsense like that will change, and it will report that it is now a centos system, not redhat, but the binaries are fully compatible and given that you already have no commercial support you will be in a better position by far. And then you can just run "yum install firefox" and have it work just fine. This is not a risky thing to do, it is not dangerous. You can also go online and search for somethign like "firefox rpm el5" and you can just grab the centos rpm there and it will install just fine on RHEL with "rpm -Uvh firefox.rpm"

Last edited by acid_kewpie; 11-23-2010 at 05:43 AM.
 
1 members found this post helpful.
Old 11-23-2010, 06:07 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,496

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Quote:
Oh and also, wierdly, when I start firefox, it opens the firefox that is installed with RHEL (an older version) and not from the unzipped directory. (I do a cd to the unzipped directory and just type in firefox in terminal)
When you are in the directory containing the file you want to execute, use
Code:
./firefox
Code:
firefox
will execute the firefox in your PATH, eq the old version installed.
./ will execute the file in the current directory.
or from any location
Code:
/path/to/firefox
Kind regards
 
1 members found this post helpful.
Old 11-23-2010, 07:18 AM   #11
Deelen
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
registration posting
 
Old 11-23-2010, 07:30 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
Originally Posted by Deelen View Post
registration posting
Hey there! Don't do this! It makes you look like a spammer!
 
Old 11-23-2010, 09:15 AM   #13
kelbrosi
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
hi,, how to replace the old firefox, becouse now i have two version firefox installed in different place,,
 
Old 11-23-2010, 09:32 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
Originally Posted by kelbrosi View Post
hi,, how to replace the old firefox, becouse now i have two version firefox installed in different place,,
No thread hijacking please. your question - your thread.
 
Old 11-23-2010, 10:54 PM   #15
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
To query for rpm installed in the system

Code:
rpm -qa | grep -i firefox

When you get the rpm using above command


To remove rpm command is


Code:
rpm -e --nodeps firefox
 
1 members found this post helpful.
  


Reply

Tags
firefox, install, mozilla, tar


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
How to install tar.gz & tar.bz2 file on Linux min Krishnendu Linux Mint 2 07-16-2009 06:52 AM
I just downloaded a game in a tar.bz2 file. How do I install and run it? Mac_09 Linux - Newbie 2 05-19-2008 12:40 AM
How to install pidgin as a .tar.bz2 file epich Linux - Software 10 03-24-2008 08:26 AM
Why can't I install a *.tar.gz or a *.tar.bz2 file? SkinnerC Slackware 11 12-13-2007 10:03 AM
How you install file with TAR.BZ2 extension?.. thanks suse2166 Linux - Software 14 01-03-2005 04:55 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration