![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
Can't uncompress download of Firefox 135.0
Hello, We use the following code (in a Dockerfile) to download the latest Firefox for testing.
curl -fsSL -o /tmp/firefox.tar.bz2 "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US" && tar -C /tmp -xjf /tmp/firefox.tar.bz2 firefox
Starting with 135.0 the tar command fails with:
bzip2: (stdin) is not a bzip2 file. tar: Child returned status 2 tar: Error is not recoverable: exiting now
134.0.2 works: curl -fsSL -o /tmp/firefox.tar.bz2 "https://download.mozilla.org/?product=firefox-134.0.2....
A couple questions: - What has changed? Is there some other way we need to download and uncompress? - Is there any documentation of the supported query params for https://download.mozilla.org
Thanks, Paul
All Replies (3)
Linux binaries are now provided in XZ format, replacing the previous BZ2 format, offering faster unpacking and smaller file sizes.
Thanks TyDraniu. That worked, once I installed the xz package.
Is there any doc for the https://download.mozilla.org query params? With list of files that can be downloaded? Is that URL supported? Or is there another preferred URL?
Actually there's a very short doc for the download.mozilla.org query parameters: https://ftp.mozilla.org/pub/firefox/releases/latest/README.txt
For myself, I had to personally learn them all thru trial and error. Thankfully they're fairly easy to figure out. The above README file is missing a few of the product & OS parameters.
For a list of what file types exist, you can have a look here: https://ftp.mozilla.org/pub/firefox/releases/135.0/linux-x86_64/en-US/ https://ftp.mozilla.org/pub/firefox/releases/135.0/
That area technically shows all the types of builds that can be downloaded. But I don't think you can specify using a parameter on a download.mozilla.org url whether to grab a .xz or .deb package, for example. Neither for Mac to get a .dmg or .pkg. But for the Windows parameter, there should be a way to determine getting a .exe or .msi.
MSI builds for Regular release & ESR: https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win64&lang=en-US https://download.mozilla.org/?product=firefox-esr-msi-latest-ssl&os=win&lang=en-US https://download.mozilla.org/?product=firefox-esr-msi-latest-ssl&os=win64&lang=en-US
And for Windows ARM64/AArch64: https://download.mozilla.org/?product=firefox-latest-ssl&os=win64-aarch64&lang=en-US
For Linux Nightly builds, there is a Linux ARM64/AArch64 option: https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64-aarch64&lang=en-US
I was able to view & customize the extra product & OS choices on: https://www.mozilla.org/en-US/firefox/all/