To install Firefox on Void linux, enter the command
# xbps-install -S firefox
Installing a development version
1. Download the files
To install another flavor of Firefox (like Dev or Nightly) on Void Linux, you must go to the Firefox directory listing and download the latest version of your flavor of choice. Mozilla provides signatures, checksums, and signatures for the checksums which you should download for the proper build as well. For this example, we will be downloading and installing Firefox 68 nightly, the May 4 2019 build.
First, navigate to https://releases.mozilla.org/pub/firefox/nightly/2019/05/2019-05-04-10-00-03-mozilla-central/ and download the files:
You can also download these with wget.
2. Verify the downloaded files with GPG
Next, open a terminal and navigate to the directory you downloaded the files to. This command will probably suffice:
# cd ~/Downloads
Import Mozilla's GPG key:
# gpg2 --recv-keys 0x61B7B526D98F0353
To sign the key, you will need to have your own GPG keys; that is out of the scope of this article. You can read GitLab's guide to generating your own GPG key. To sign Mozilla's key:
# gpg2 --ask-cert-level --sign-key 0x61B7B526D98F0353
You can verify the fingerprint at https://gpg.mozilla.org/pks/lookup?search=0x61B7B526D98F0353&fingerprint=on&op=vindex. If the fingerprints match, enter "3" and then "y". The key should now be certified.
Then verify the files:
# gpg2 --verify firefox-68.0a1.en-US.linux-x86_64.checksums.asc firefox-68.0a1.en-US.linux-x86_64.checksums # gpg2 --verify firefox-68.0a1.en-US.linux-x86_64.tar.bz2.asc firefox-68.0a1.en-US.linux-x86_64.tar.bz2
If GnuPG responds with "Good signature from "Mozilla Software Releases <firstname.lastname@example.org>"", the downloads have been verified with GnuPG.
3. Verify the checksums of the downloaded files
Now we must verify the checksums. To calculate the checksum of your download, run the command:
# sha512sum firefox-68.0a1.en-US.linux-x86_64.tar.bz2
To get the checksum from the .checksums file, run the command:
# grep -i "firefox-68.0a1.en-US.linux-x86_64.tar.bz2" firefox-68.0a1.en-US.linux-x86_64.checksums | grep -i sha512
Make sure the checksums match. If they don't, retry the download. Now extract the Firefox Nightly files:
# tar -xf firefox-68.0a1.en-US.linux-x86_64.tar.bz2
Clean up some files that are no longer needed:
# rm -f firefox-68.0a1.en-US.linux-x86_64.*
4. Move firefox folder to another directory
You may wish to move the Firefox Nightly files to somewhere else on your machine other than ~/Downloads. The author of this guide likes to keep their programs in ~/.local/bin, but others keep them in ~/bin, /opt, or elsewhere -- it's your system, so it's your choice.
To move them to ~/.local/bin, make the directory if it doesn't exist, then move the files:
# mkdir -p ~/.local/bin/ # mv firefox ~/.local/bin/
You can now run Firefox Nightly with the command:
5. Add desktop icon
If you want to add the Firefox Nightly icon to your desktop environment, create a file "firefox-nightly.desktop" in ~/.local/share/applications. Give it the following contents:
#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Name=Firefox Nightly GenericName=Web Browser Comment=Browse the Web Exec=/home/yourusername/.local/bin/firefox/firefox %u Icon=firefox-nightly Terminal=false Type=Application MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https; StartupNotify=true Categories=Network;WebBrowser; Keywords=web;browser;internet;
Replace "yourusername" with your username, or replace the "Exec" value altogether if you put the Firefox Nightly files somewhere else besides ~/.local/bin. You should now be able to open Firefox Nightly from your desktop, and be able to set it as your default browser.