Porovnání revizí

Install Firefox on Linux

Revize 258378:

Revize 258378 od uživatele qxyz123 z data

Revize 258918:

Revize 258918 od uživatele marcelo.ghelman z data

Klíčová slova:

ubuntu opensuse
ubuntu opensuse

Souhrn výsledků vyhledávání:

This article describes how to download and install Firefox on Linux.
This article describes how to download and install Firefox on Linux.

Obsah:

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. {for mac,win}{note}'''This article only applies to Linux.''' {for mac}For instructions to install Firefox on Mac, see [[How to download and install Firefox on Mac]].{/for}{for win}For instructions to install Firefox on Windows, see [[Installing Firefox on Windows]].{/for}{/note}{/for} __TOC__ = 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, [https://flatpak.org/setup/ install and configure Flatpak] on your computer. Once Flatpak is installed, go to the [https://flathub.org/apps/details/org.mozilla.firefox Firefox Flathub's page] and click the {button Install} button. Alternatively, you can type the following command in a terminal: ;<code>'''flatpak install flathub org.mozilla.firefox'''</code> By default, Flatpak installs Firefox in the same locale as your operating system. To use a different language, please follow the instructions on [[Use Firefox in another language|how to use Firefox in another language]]. = Install from Snap = To install Firefox from Snap, [https://snapcraft.io/docs/installing-snapd install Snap] on your computer. Once Snap is installed, go to the [https://snapcraft.io/firefox Firefox Snapcraft's Store page], click the {button 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 [[Use Firefox in another language|how to use Firefox in another language]]. = Install Firefox from Mozilla builds (For advanced users) = {note} * '''Before you install Firefox''', make sure that your computer has the ''' [http://www.mozilla.org/firefox/system-requirements.html required libraries]''' installed. Missing libraries will cause Firefox to be inoperable. * To install Firefox with this method, you '''must be''' able to login as root or execute <code>'''sudo'''</code> 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: <code>'''/usr/bin/firefox'''</code>. {/note} <!-- Auto-list doesn't work with a newline character in front of a <code> block. This means we need to manually set the list number --> 1. Go to the [https://www.mozilla.org/firefox/linux/?utm_medium=referral&utm_source=support.mozilla.org Firefox download page] and click on the {button Download Now} button. 2. Open a terminal and go to the folder where your download has been saved. For example: ;<code>'''cd ~/Downloads'''</code> 3. Extract the contents of the downloaded file by typing: ;<code>'''tar xjf firefox-*.tar.bz2'''</code> The following commands must be executed as root, or preceded by <code>'''sudo'''</code>. 4. Move the uncompressed Firefox folder to {filepath /opt}: ;<code>'''mv firefox /opt'''</code> 5. Create a symlink to the Firefox executable: ;<code>'''ln -s /opt/firefox/firefox /usr/local/bin/firefox'''</code> 6. Download a copy of the desktop file: ;<code>'''wget https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -P /usr/local/share/applications'''</code> Alternatively, if <code>'''wget'''</code> is not installed on your computer, go to the URL mentioned above, right-click on the page to open the contextual menu and select {menu Save Page As}. After you downloaded the file, move it to {filepath /usr/local/share/applications}. To verify that the installation was successful, you can open the [[Use the Troubleshooting Information page to help fix Firefox issues|Troubleshooting Information]] page. In the ''Application Basics'' section, the value of {pref Application Binary} should be <code>'''/opt/firefox/firefox-bin'''</code>.
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. {for mac,win}{note}'''This article only applies to Linux.''' {for mac}For instructions to install Firefox on Mac, see [[How to download and install Firefox on Mac]].{/for}{for win}For instructions to install Firefox on Windows, see [[Installing Firefox on Windows]].{/for}{/note}{/for} __TOC__ = 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, [https://flatpak.org/setup/ install and configure Flatpak] on your computer. Once Flatpak is installed, go to the [https://flathub.org/apps/details/org.mozilla.firefox Firefox Flathub's page] and click the {button Install} button. Alternatively, you can type the following command in a terminal: ;<code>'''flatpak install flathub org.mozilla.firefox'''</code> By default, Flatpak installs Firefox in the same locale as your operating system. To use a different language, please follow the instructions on [[Use Firefox in another language|how to use Firefox in another language]]. = Install from Snap = To install Firefox from Snap, [https://snapcraft.io/docs/installing-snapd install Snap] on your computer. Once Snap is installed, go to the [https://snapcraft.io/firefox Firefox Snapcraft's Store page], click the {button 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 [[Use Firefox in another language|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 ''' [http://www.mozilla.org/firefox/system-requirements.html required libraries]''' installed. Missing or incompatible libraries may cause Firefox to be inoperable. == System Firefox installation (for advanced users) == {note} To install Firefox with this method, you '''must be''' able to login as root or execute <code>'''sudo'''</code> 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: <code>'''/usr/bin/firefox'''</code>.{/note} <!-- Auto-list doesn't work with a newline character in front of a <code> block. This means we need to manually set the list number --> 1. Go to the [https://www.mozilla.org/firefox/linux/?utm_medium=referral&utm_source=support.mozilla.org Firefox download page] and click the {button Download Now} button. 2. Open a terminal and go to the folder where your download has been saved. For example: ;<code>'''cd ~/Downloads'''</code> 3. Extract the contents of the downloaded file by typing: ;<code>'''tar xjf firefox-*.tar.bz2'''</code> The following commands must be executed as root, or preceded by <code>'''sudo'''</code>. 4. Move the uncompressed Firefox folder to {filepath /opt}: ;<code>'''mv firefox /opt'''</code> 5. Create a symlink to the Firefox executable: ;<code>'''ln -s /opt/firefox/firefox /usr/local/bin/firefox'''</code> 6. Download a copy of the desktop file: ;<code>'''wget https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -P /usr/local/share/applications'''</code> Alternatively, if <code>'''wget'''</code> is not installed on your computer, go to the URL mentioned above, right-click on the page to open the contextual menu and select {menu Save Page As}. After you downloaded the file, move it to {filepath /usr/local/share/applications}. To verify that the installation was successful, you can open the [[Use the Troubleshooting Information page to help fix Firefox issues|Troubleshooting Information]] page. In the ''Application Basics'' section, the value of {pref Application Binary} should be <code>'''/opt/firefox/firefox-bin'''</code>. == Local Firefox installation in user's account == {note}If you don't have access to login as root or execute <code>'''sudo'''</code> 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.{/note} # Go to the [https://www.mozilla.org/firefox/linux/?utm_medium=referral&utm_source=support.mozilla.org Firefox download page] and click the {button 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. # Open a terminal and go to the folder where your download has been saved. For example: #; <code>'''cd ~/Downloads'''</code> # Extract the downloaded file contents: #; <code>'''tar xjf firefox-*.tar.bz2'''</code> # If you downloaded a specific build, you may want to rename the uncompressed folder accordingly. For example: #; <code>'''mv firefox firefox-nightly'''</code> # You can leave the uncompressed folder into your download folder, or move it to another folder in your account. For example: #; <code>'''mkdir ~/soft ; mv firefox ~/soft/firefox'''</code> # Firefox is now ready to be used. You can run it directly from the terminal: #; <code>'''~/soft/firefox/firefox &'''</code> # Create a desktop shortcut. #* Right-click on the desktop and choose ''Create launcher'' from the context menu. (It may be different in your Linux distribution.) #* You can also type this on the terminal: #*; <code>'''ln -s ~/soft/firefox/firefox ~/Desktop/'''</code> #* An icon for the desktop shortcut will be found in <code>'''firefox/browser/chrome/icons/default/'''</code> {note}'''Note:''' This 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.{/note}

Zpět na historii