Установить firefox linux tar bz2

Install Firefox on Linux

Most Linux distributions already have Firefox installed from their distribution package manager, and configured as the default browser. This article explains other ways to download and install Firefox on a Linux.

This article only applies to Linux. For instructions to install Firefox on Mac, see How to download and install Firefox on Mac. For instructions to install Firefox on Windows, see How to install Firefox on Windows.

Table of Contents

Install from your distribution package manager (Recommended)

To install Firefox using your distribution package manager, please refer to your Linux distribution’s documentation.

This method is recommended because it ensures Firefox and all the required libraries are installed and configured optimally for your distribution. However, there may be a small delay between the official release of a new version of Firefox and the moment when your distribution updates the version it distributes. Your distribution may also distribute it without the Firefox branding, or only distribute the ESR version.

Install from Flatpak

To install Firefox from Flatpak, install and configure Flatpak on your computer. Once Flatpak is installed, go to the Firefox Flathub’s page and click the Install button. Alternatively, you can type the following command in a terminal:

flatpak install flathub org.mozilla.firefox

By default, Flatpak installs Firefox in the same locale as your operating system. To use a different language, please follow the instructions on how to use Firefox in another language.

Install from Snap

To install Firefox from Snap, install Snap on your computer. Once Snap is installed, go to the Firefox Snapcraft’s Store page, click the Install button and follow the instructions.

If available, Snap installs Firefox in the same locale as your operating system. To use a different language, please follow the instructions on how to use Firefox in another language.

Install Firefox from Mozilla builds

Before you install Firefox from a Mozilla build, make sure that your computer has the required libraries installed. Missing or incompatible libraries may cause Firefox to be inoperable.

System Firefox installation (for advanced users)

To install Firefox with this method, you must be able to log in as root or execute sudo commands.

This installation will have priority over the Firefox version installed through your package manager. To run the version installed with your package manager, you will need to execute the binary from a terminal. To do so in most distributions, open a terminal and type:
/usr/bin/firefox

  1. Go to the Firefox download page and click the Download Now button.
  2. Open a terminal and go to the folder where your download has been saved. For example: cd ~/Downloads Extract the contents of the downloaded file by typing: tar xjf firefox-*.tar.bz2
    The following commands must be executed as root, or preceded by sudo .
  3. Move the uncompressed Firefox folder to /opt : mv firefox /opt
  4. Create a symlink to the Firefox executable: ln -s /opt/firefox/firefox /usr/local/bin/firefox
  5. Download a copy of the desktop file: wget https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -P /usr/local/share/applications
Читайте также:  Xor in с linux

Alternatively, if wget is not installed on your computer, go to the URL mentioned above, right-click on the page to open the contextual menu and select Save Page As . After you downloaded the file, move it to /usr/local/share/applications .

To verify that the installation was successful, you can open the Troubleshooting Information page. In the Application Basics section, the value of Application Binary should be /opt/firefox/firefox-bin .

Local Firefox installation in user’s account

If you don’t have access to login as root or execute sudo commands, or just prefer to use a local Firefox in your account, you can make a local installation. You can also do this to have multiple Firefox installations for different builds.

  1. Go to the Firefox download page and click the Download Now button.
    • You can also click the Download a different platform or language link below that button to choose another build: Nightly, Beta, Developer, or ESR.
  2. Open a terminal and go to the folder where your download has been saved. For example: cd ~/Downloads
  3. Extract the downloaded file contents. This will create a folder named firefox . After that, you can delete the archive: tar xjf firefox-*.tar.bz2
    rm firefox-*.tar.bz2
  4. If you downloaded a specific build, you may want to rename the uncompressed folder accordingly. For example: mv firefox firefox-nightly
  5. You can leave the uncompressed folder into your download folder, or move it to another place in your account. For example: mv firefox ~/firefox
  6. Firefox is now ready to be used. You can run it directly from the terminal: ~/firefox/firefox &
  7. Create a desktop shortcut. (It may be different in your Linux distribution.)
    • Right-click on the desktop and choose Create launcher from the context menu.
    • You can also type this on the terminal: ln -s ~/firefox/firefox ~/Desktop/
    • An icon for the desktop shortcut will be found in ~/firefox/browser/chrome/icons/default/

Note: This method doesn’t change file types binding on the system, so links from other applications will not open in the local installation. You will need to copy the link and paste in the Firefox address bar.

These fine people helped write this article:

Illustration of hands

Volunteer

Grow and share your expertise with others. Answer questions and improve our knowledge base.

Источник

How to install, uninstall and update Firefox on Ubuntu

Every Ubuntu user that uses a graphical interface will have to interact with Mozilla Firefox in some capacity, since it’s the default internet browser on Ubuntu. Even if you just want to uninstall it and use a different browser, you’ll at least be dealing with it for a short time. In this guide, we’ll show you how you can install, update, and uninstall Firefox on Ubuntu Linux.

Читайте также:  Vipnet csp alt linux

In this tutorial you will learn:

  • How to install, update, and uninstall Firefox with Ubuntu’s default package repository
  • How to install, update, and uninstall Firefox with Mozilla PPA repository
  • How to install, update, and uninstall Firefox with direct download

How to install, uninstall and update Firefox on Ubuntu

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Ubuntu Linux
Software Mozilla Firefox
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

How to install Firefox

WARNING
Since Ubuntu version 22.04 (the latest LTS release), Firefox is now installed by default as a Snap package. It can still be installed via Ubuntu repo or official download.

As we mentioned earlier, Firefox is the default internet browser on Ubuntu. Therefore, it stands to reason that it’s already on your system and there’s no need for installation instructions, right? Yeah, probably. But you or someone else may decide to uninstall it and come back to it later, or maybe it’s giving you problems and you want to reinstall the software altogether. We’ll show you a few methods for how to install, update, and uninstall Firefox from your system in this section.

There are four ways we can install Firefox. All of them accomplish the same thing, but you should pick the one that best suits you:

  1. Installing via Snap method – this uses the Snap package manager (installed by default on Ubuntu).
  2. Installing from the Standard Ubuntu repository – this involves using an apt command to install a stable version of Firefox. Use this method if you’re in a hurry or unsure of which method to use.
  3. Installing from the Mozilla PPA repository. This is another command line method but it allows you to install more updated (and less stable, possibly) versions of Firefox directly from Mozilla’s repository. Use this method if you enjoy the bleeding edge.
  4. Installing from Firefox’s official website, command line with wget , but you can also use this method if you want to avoid the command line and you already have a browser that can be used to navigate to Firefox’s website.

We’re going to show you the step by step for each of these methods, and regardless of which one you choose, you’ll be able to follow along with our instructions to update and uninstall Firefox as well.

Читайте также:  Alt linux canon lbp3010

First thing’s first. You should open a terminal and run a quick couple Linux commands to update your system’s apt index and see if a current version of Firefox is already installed on your system:

$ sudo apt update $ firefox --version

Check if Firefox is installed and what version it is

With that out of the way, it’s time to pick a method and follow one of the sections below to get Firefox installed or updated.

Install, update, and uninstall Firefox via Snap

$ sudo snap install firefox
$ sudo snap refresh firefox

Install, update, and uninstall Firefox from Ubuntu repository

The following section will explain how to install, update, and uninstall Mozilla Firefox from the command line, using Ubuntu’s default package repository.

Install Firefox

If the Firefox browser isn’t already on your Ubuntu system for some reason, entering the following command in a terminal will download and install it:

Update Firefox

The same command will also update Firefox if it’s already installed:

However, if you want to update the browser, we’d recommend that you just upgrade your Ubuntu operating system entirely. This will update all of your installed packages rather than just the single Firefox package.

Uninstall Firefox

To uninstall Firefox from your system, we’ll use another apt command. This command will remove Firefox from your system:

Install, update, and uninstall Firefox from Mozilla PPA repository

The following section will explain how to install, update, and uninstall Mozilla Firefox from the command line, using the Mozilla developer PPA repository. Remember that this method will install the latest version of Firefox, even if it’s in beta and considered a little less than stable.

Install Firefox

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6DCF7707EBC211F
$ sudo apt-add-repository "deb http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu focal main" $ sudo apt update

Uninstall Firefox

You can still uninstall Firefox in the traditional way, with apt at the command line:

Install, update, and uninstall Firefox with direct download

$ wget -O ~/FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64"
$ sudo tar xjf ~/FirefoxSetup.tar.bz2 -C /opt/
$ sudo mv /usr/lib/firefox/firefox /usr/lib/firefox/firefox_backup
$ sudo ln -s /opt/firefox/firefox /usr/lib/firefox/firefox

Firefox should now be installed and usable.

Update Firefox

To update your Firefox to the latest version, you just need to download the latest installation package and extract the package content:

$ wget -O ~/FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64" $ sudo tar xjf ~/FirefoxSetup.tar.bz2 -C /opt/

Uninstall Firefox

To uninstall Firefox, just remove the /opt/firefox directory that we created, and revert your system back to using the default version of Firefox that was installed from the Ubuntu repository:

$ sudo rm -fr /opt/firefox $ sudo mv /usr/lib/firefox/firefox_backup /usr/lib/firefox/firefox

Closing Thoughts

In this article, we learned several methods for installing, updating, and uninstalling Mozilla Firefox on Ubuntu Linux. Whether you want to use Ubuntu’s default package repository, Mozilla’s developer PPA, or Firefox’s official website, managing Firefox on your Ubuntu system is easy to do when following along with our step by step instructions.

Источник

Оцените статью
Adblock
detector