Skip to content

Instantly share code, notes, and snippets.

@mirsahib
Forked from stephenharris/install-firefox-linux.md
Created October 16, 2017 06:49
Show Gist options
  • Select an option

  • Save mirsahib/289648371386c85b96d96dc3cacdf75d to your computer and use it in GitHub Desktop.

Select an option

Save mirsahib/289648371386c85b96d96dc3cacdf75d to your computer and use it in GitHub Desktop.

Revisions

  1. @stephenharris stephenharris revised this gist Oct 24, 2016. 1 changed file with 32 additions and 32 deletions.
    64 changes: 32 additions & 32 deletions install-firefox-linux.md
    Original file line number Diff line number Diff line change
    @@ -2,56 +2,56 @@

    1. Does an existing version of firefox exist?

    ```
    firefox --version
    ```
    ```
    firefox --version
    ```

    If not, skip to (3).
    If not, skip to (3).

    2. Install dependency

    ```
    sudo apt-get install libgtk2.0-0
    ```
    ```
    sudo apt-get install libgtk2.0-0
    ```

    3. Download firefox version:
    FireFox's release archive can be found at https://ftp.mozilla.org/pub/firefox/releases/. You will need to use the
    appropriate version (typically `linux-x86_64`, but you can run `arch` or `uname -m` to check if your machine
    is 64 or 32 bit).

    ```
    wget https://ftp.mozilla.org/pub/firefox/releases/45.0.2/linux-x86_64/en-GB/firefox-45.0.2.tar.bz2
    # Saving to: ‘firefox-45.0.2.tar.bz2’
    ```
    ```
    wget https://ftp.mozilla.org/pub/firefox/releases/45.0.2/linux-x86_64/en-GB/firefox-45.0.2.tar.bz2
    # Saving to: ‘firefox-45.0.2.tar.bz2’
    ```

    2. Extract the binary
    4. Extract the binary

    ```
    tar xvf firefox-45.0.2.tar.bz2
    ```
    ```
    tar xvf firefox-45.0.2.tar.bz2
    ```

    3. Backup existing firefox directory
    5. Backup existing firefox directory

    If you have a firefox already installed, back-up the existing version:
    If you have a firefox already installed, back-up the existing version:

    ```
    sudo mv /usr/bin/firefox /usr/bin/firefox-backup
    ```
    ```
    sudo mv /usr/bin/firefox /usr/bin/firefox-backup
    ```

    and remove the symbolic link
    and remove the symbolic link

    ```
    rm /usr/bin/firefox
    ```
    ```
    rm /usr/bin/firefox
    ```

    4. Move the extracted firefox directory
    6. Move the extracted firefox directory

    ```
    sudo mv firefox/ /usr/lib/firefox
    ```
    ```
    sudo mv firefox/ /usr/lib/firefox
    ```

    4. Create a symbolic link to the firefox binary
    7. Create a symbolic link to the firefox binary

    ```
    sudo ln -s /usr/lib/firefox /usr/bin/firefox
    ```
    ```
    sudo ln -s /usr/lib/firefox /usr/bin/firefox
    ```
  2. @stephenharris stephenharris created this gist Oct 24, 2016.
    57 changes: 57 additions & 0 deletions install-firefox-linux.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    # Installing a particular version of FireFox on Linux

    1. Does an existing version of firefox exist?

    ```
    firefox --version
    ```

    If not, skip to (3).

    2. Install dependency

    ```
    sudo apt-get install libgtk2.0-0
    ```

    3. Download firefox version:
    FireFox's release archive can be found at https://ftp.mozilla.org/pub/firefox/releases/. You will need to use the
    appropriate version (typically `linux-x86_64`, but you can run `arch` or `uname -m` to check if your machine
    is 64 or 32 bit).

    ```
    wget https://ftp.mozilla.org/pub/firefox/releases/45.0.2/linux-x86_64/en-GB/firefox-45.0.2.tar.bz2
    # Saving to: ‘firefox-45.0.2.tar.bz2’
    ```

    2. Extract the binary

    ```
    tar xvf firefox-45.0.2.tar.bz2
    ```

    3. Backup existing firefox directory

    If you have a firefox already installed, back-up the existing version:

    ```
    sudo mv /usr/bin/firefox /usr/bin/firefox-backup
    ```

    and remove the symbolic link

    ```
    rm /usr/bin/firefox
    ```

    4. Move the extracted firefox directory

    ```
    sudo mv firefox/ /usr/lib/firefox
    ```

    4. Create a symbolic link to the firefox binary

    ```
    sudo ln -s /usr/lib/firefox /usr/bin/firefox
    ```