How to install firefox-2.0.tar.gz in Linux

Q. I have downloaded firefox file from mozilla web site to my Linux desktop system. The name of file is firefox-2.0.tar.gz. How do I install firefox-2.0.tar.gz in Fedora Core Linux? Please provide me step by step instructions for the same. What about my old bookmarks and add-ons. I am going to lose them?

A. Update: FireFox version 3.0 has been released and it is recommended that you install Firefox 3.0 under any Linux distribution.

Mozilla Firefox is a free, open source, cross-platform graphical web browser developed by the Mozilla Corporation and hundreds of volunteers. Installing Firefox 2 will overwrite your existing installation of Firefox. You won’t lose any of your bookmarks or browsing history, but some of your extensions and other add-ons might not work until updates for them are made available.

Installing firefox on Linux

Just use following instructions to download and install Firefox.

Download firefox to your Linux desktop

=> Visit this site to download firefox

Firefox 2.0 installation – Just untar file and install it

Let us say you would like to install firefox in your own home directory called /home/tom/firefox
$ mkdir /home/tom/firefox

Change directory:
$ cd /home/tom/firefox

Copy your files to /home/tom/firefox and untar it:

$ cp /home/tom/Desktop/firefox- .
$ tar -zxvf firefox-

And you are done. Start firefox:
$ /home/tom/firefox/firefox &

How do I install firefox for everyone?

Install Firefox in /opt directory. Login as root user:
# cd /opt
# mkdir firefox
# cd firefox
# cp /home/tom/Desktop/firefox- .
# tar -zxvf firefox-

To start firefox:
$ /opt/firefox/firefox &

You can also create a shortcut from your own desktop :)

What about my bookmarks and browsing history – Am I going to lose them?

You won’t lose any of your bookmarks or browsing history, but some of your extensions and other add-ons might not work until updates for them are made available.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 39 comments so far... add one

CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
39 comments… add one
  • Hassan Dec 7, 2006 @ 9:01

    Sir ,

    I just install Firefox2.0 in my linux machine.
    Now i can access Fierefox by giving the command like
    ” /opt/firefox/firefox ” ,
    can i access firefox by the command ” firefox ” only? if it is possible how ?
    can i create a shortcut on desktop ?


  • 🐧 nixCraft Dec 7, 2006 @ 10:41


    You can create Desktop short by right clicking on Desktop > Create New > File > Link to Application

    Next Select Application Tab > Type Description and Comment as FireFox and Command as /opt/firefox/firefox

    Click Ok to save and you are done. This is for KDE desktop.

    > access firefox by the command ” firefox ” only

    Open your .bash_profile file in your hone directory and type command:
    export PATH=$PATH:/opt/firefox

    Save and close file.

    Hope this helps

  • Danish Godwin Apr 11, 2007 @ 6:07

    How to install the tar.gz files or .exe files on linux. Please sent the details as soon

  • 🐧 nixCraft Apr 11, 2007 @ 18:19

    You can not install .exe file on Linux. It is MS – windows specific file.

    To install .tar.gz (tar ball):
    tar -zxvf file.tar.gz
    cd file/
    make install

    Also look for README or INSTALL file

  • george whitmore Apr 27, 2007 @ 16:07

    I did the same thing in as described here in trying to Install Thunderbird v2.0. That failed. Don’t I need to be in a different folder to install then my home/gpw/download folder?

    tar -zxvf file.tar.gz
    cd file/
    ./configure FAILED
    make FAILED
    make install FAILED


  • 🐧 nixCraft Apr 27, 2007 @ 19:49


    This information is for Firefox binary system only. You just need to unpack using tar command and type ./thunderbird to run it


  • george whitmore Apr 27, 2007 @ 23:09

    Thanks for you help. Works fine… Question though: here are 2 examples of tar ball files that needed to be handled differently. What should I be looking for so I could find this myself?

    Thanks again, one more step for me into the Linux world…

  • bechir Jun 8, 2007 @ 8:35

    J’ai juste installer firefox .

    J’ai suivis le démarche ,mais je n’arrive pas à voir la nouvelle version.

    toujours il m’affiche l’ancienne version.

    merci sur vos aides.

  • 🐧 nixCraft Jun 8, 2007 @ 12:50

    Vous devez dactylographier le plein chemin tel que /opt/firefox/firefox

  • kevin Jun 19, 2007 @ 13:21

    Argh! Downloaded Firefox-, followed the instructions, but trying to run firefox I get…
    error while loading shared cannot open shared object file: No such file or directory

    Using Fedora 4

  • baLaJi Jul 17, 2007 @ 13:55

    hi all,

    i’m using fedora6. by default it has got firefox built in. i downloaded firefox- file from the mozilla site. but i couldn’t get any instructions on how to install it successfully. almost all the instructions i could find tell to copy the gz file in some folder and do a tar -zvxf on it. done. so i installed it in /usr/local/bin/firefox. but when i execute ./firefox thru konsole, it shows this error:

    ./firefox-bin: error while loading shared libraries: cannot open shared object file: No such file or directory

    if i execute ./firefox-bin it shows this:

    ./firefox-bin: error while loading shared libraries: cannot open shared object file: No such file or directory

    double-clicking either thru file manager doesn’t give any response.

    please help as i need to use firefox 2.

    thanx in advance.

  • baLaJi Jul 17, 2007 @ 13:58

    i forgot one thing. if i start firefox 2 thru this:

    ./firefox &
    (as given in installation directions for linux)

    then i get this error message.

    [2] 3215
    [1] Done firefox
    [root@localhost firefox]# ./firefox-bin: error while loading shared libraries: cannot open shared object file: No such file or directory

    [2]+ Exit 127 ./firefox

    and when i double click on firefox it opens up in kedit.

  • 🐧 nixCraft Jul 17, 2007 @ 14:19


    You need to install missing binary files, you must install following file using net or from CD/DVD:

    yum install libstdc++
  • baLaJi Jul 17, 2007 @ 14:29

    hi vivek,

    i did yum install libstdc++ from the net. but i still get this error msg:

    /opt/firefox/firefox-bin: error while loading shared libraries: cannot open shared object file: No such file or directory

    this happened even after i rebooted linux. i just don’t seem to get the problem. i would appreciate if you or anyone else could help me out.


  • 🐧 nixCraft Jul 17, 2007 @ 19:13

    I think you better get new distro such as Ubuntu it comes with all latest software and no such problem. Fedora core is kind of beta software for RHEL.

  • baLaJi Jul 18, 2007 @ 11:58

    thanx vivek.

    i got over the problem. there were more dependencies involved. so i found out the compatibility issue. and i did

    yum install compat-libstdc++-33

    i didn’t install the tar.gz file i downloaded previusly. rather i did

    yum install firefox

    which directly downloaded the firefox- gz and installed it. but i still can’t figure out why firefox 1.5 still exists in my system when i didn’t do an update? and i can run it too. anyone can tell?


  • 🐧 nixCraft Jul 18, 2007 @ 14:52


    May be some sort of conflict, you can just forget about old version and use latest one :)

    Glad to know it is all sorted out :)

  • Balaji Jul 21, 2007 @ 10:49

    hello everyone,

    this forum’s been dormant for a while i guess. let me dehibernate (pardon my pun) it.

    i’ve two partitions in my sata one booting xp and the other fedora 6. i wanted to access my xp data booting into linux. so as root, i did the required ‘mount’ (mount /dev/sda1 /mnt/c -t ntfs-3g -r -o umask=0222) in /etc/fstab. i’ve a user account which i log into when i’m using linux normally. now my problem is i’m not able to access the xp partition thru this. with root it’s fine but i can’t be logging in as root.

    early help would be appreciated.

    thanx in advance,

  • Jacky Jul 22, 2007 @ 4:43

    Download firefox from the website, then run
    tar -zxvf firefox-2.0.tar.gz
    cd firefox
    sudo chmod -x firefox-bin
    sudo firefox-bin

    After you typed in this into command line, the prompt may say that you dont have right to write…

    Just ignore it, now you can just simply create an icon on desktop.

    At command field, type /directory/firefox/firefox
    then you can double-click it to run new version firefox.

    Hope this helps. Cheers!

  • murali Jul 23, 2007 @ 22:47

    When i run after sudo chmod -x firefox.bin, sudo firefox.bin it says that sudo: firefox-bin: command not found

  • kannan Aug 19, 2007 @ 11:22

    i am unable to install firefox in ubuntu.i followed the above procedure,but fails.extracted the .tar.gz files but don’t know how to install….

    please help


  • debal das Nov 19, 2007 @ 9:35

    1)How to instal mozila fire fox in red hat linux ?
    2)How i share internet commection in my red hat linux server to windows xp machine?

  • Herman May 18, 2008 @ 13:21

    Hello All,

    I followd your instructions, but it will not work i get the next message;

    /opt/firefox/firefox-bin: error while loading shared libraries: cannot open shared object file: No such file or directory

    there are two firefox and firefox-bin in the folder, both give the same result
    I can not start Firefox

    can you help me

    sincerely herman

  • 🐧 nixCraft May 18, 2008 @ 13:40


    Install libstdc++5 using your distros installation tool such as apt-get or yum

  • msd Jun 20, 2008 @ 18:05

    For guys who have problems with installing Firefox 2 on older version of your Linux, note that you usually need to update your Linux (SuSe in my case) version first.

  • Sergio Luiz Araujo Silva Jul 17, 2008 @ 16:54

    see: UNIX tips: Learn 10 good UNIX usage habits

    tar zxvf package.tar.gz -C /opt

  • roy Dec 12, 2008 @ 10:55

    how to instal tar.gz file in ubuntu 8.10 and how to instal any software in ubuntu 8.10

  • Ubuntu4lifer Jan 16, 2009 @ 13:07

    what do you guys mean with ./configure? Could you maybe put in a example?

  • Emma Pantoja Jan 17, 2009 @ 5:51

    I like firefox it gives me what I need

  • safdar azam Apr 22, 2009 @ 6:37

    I just want to know. how can i install firefox in my linux machine plz give me some advise thanks.

  • michael Jul 25, 2009 @ 21:17

    u rocked man. it works.

  • Rain Aug 28, 2009 @ 3:42


    I’m very new with Linux and I got it along with my Asus EEE. Can you guys help me? I want to upgrade to Firefox 3.5 but I just save it to disk and now I don’t know where and how to open it. It just goes to my documents and I don’t know how to run it. I need a step by step procedure. Hope you guys could help me.

  • gccradioscience Sep 8, 2009 @ 23:50

    Same problem here, I hope someone will come out with a easier way to install these files and more safely. I see that there are newbies here and yes I am one that just installed Ubuntu 9.04 and Linux is like a whole different world. Things are different here. 1. No nasties, no cookies, no donuts, no spyware, no snoopware. Since I used Linux vs Windows, I think Microsleuth made spyware, and adware, and cookies, and crumbs and thats when we say that’s it I give up, I am installing Linux! We all need to take the time and educate ourselves and learn this OS language. One day I will get the hang of this. I just have to get to the library and read up on it. We all need to get prepared for new things coming out that would be worse than cookies called donuts. A data piece that would be like a cookie even worse, it would spys on you through “the donut hole”. Linux indeed saved my netbook from complete damage due to the computer bug ever called the missing windows root/system32/hal.dll bug. That one was created by Microsoft. This malware keeps windows from booting up and also disables the DOS prompt feature.

  • Harry Nov 12, 2009 @ 22:59

    Long and numerous command lines is the reason why Linux will NEVER come even halfway close to Windows when it comes to popularity.

    What’s so difficult about making an installer-script for Linux ?

    Die, Linux. Die.
    Or…well….it will kill itself, anyway.

  • Scan Dec 23, 2009 @ 23:25

    Hi all,

    I got the file firefox-3.5.6.tar.bz2 form the site, I make “gzip firefox-3.5.6.tar.bz2” and I got the firefox-3.5.6.tar.bz2.gz,
    but when I make “tar -zxvf firefox-3.5.6.tar.bz2.gz” its respond with:

    tar: This does not look like a tar archive
    tar: Skipping to next header
    tar: Archive contains obsolescent base-64 headers
    tar: Error exit delayed from previous errors

    maybe I do something wrong? Maybe the file is xxxxxx.tar.bz2.gz and about it I have this message?
    Help me please. :-)

  • andy May 11, 2010 @ 12:59

    I am not a computer person and agree things should be made easier for the masses. I right clicked on the file and chose Extract here and then found firefox runs off the desktop from its own folder. OK . it works, and to get flash download the flash file and copy it into the plugins folder in firefox..mouse copy/paste.. So it works and not a key stroke needed…and I feel less of a nerd for it…

  • Grace Jul 17, 2012 @ 22:19

    How do I download the newest firefox 14.0.1.tar.bz2 on Xandros Linux. I just factory reset and have firefox 3, I’ve never worked with Linux operating system before and am very confused. Please help with very specific steps…

    Thank you.

  • gagan Oct 30, 2012 @ 13:39

    hi ,grace
    here is the link

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Problem posting comment? Email me @