Firefox 过去使用 FTP 服务器来下载二进制文件。当他们迁移到 AWS 时,他们删除了 FTP 访问权限据我所知,获取 Firefox 的唯一方法是下载安装程序存根,然后下载它。
还有其他方法下载吗满的不使用浏览器或 curl 获取最新的 Firefox 二进制文件?
答案1
您可以使用 PowerShell:Invoke-WebRequest -Uri $url -OutFile $output
或(New-Object System.Net.WebClient).DownloadFile($url, $output)
。来源:https://blog.jourdant.me/post/3-ways-to-download-files-with-powershell
答案2
总结:
wget -O FirefoxSetup.exe "https://download.mozilla.org/?product=firefox-latest&os=win64&lang=en-US"
在Mozilla FTP 目录,他们提供了如何使用 wget 下载 Firefox 的说明。我已将其包含在下面:
Please use download.mozilla.org to retrieve the latest Firefox release.
For example, if you wish to download the US English installer for Windows (32bit)
the url is
https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US
This could be pasted into the location bar of a browser, or used with curl or wget, e.g.
wget -O FirefoxSetup.exe "https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US"
For other operating systems replace 'os=win' with:
Windows 64bit os=win64
OS X os=osx
Linux x86_64 os=linux64
Linux i686 os=linux
For other languages replace 'lang=en-US' with:
Acholi lang=ach
Afrikaans lang=af
Albanian lang=sq
Arabic lang=ar
Aragonese lang=an
Armenian lang=hy-AM
Assamese lang=as
Asturian lang=ast
Azerbaijani lang=az
Basque lang=eu
Belarusian lang=be
Bengali (Bangladesh) lang=bn-BD
Bengali (India) lang=bn-IN
Bosnian lang=bs
Breton lang=br
Bulgarian lang=bg
Catalan lang=ca
Chinese (Simplified) lang=zh-CN
Chinese (Traditional) lang=zh-TW
Croatian lang=hr
Czech lang=cs
Danish lang=da
Dutch lang=nl
English (British) lang=en-GB
English (South African) lang=en-ZA
Esperanto lang=eo
Estonian lang=et
Finnish lang=fi
French lang=fr
Frisian lang=fy-NL
Fulah lang=ff
Gaelic (Scotland) lang=gd
Galician lang=gl
German lang=de
Greek lang=el
Gujarati (India) lang=gu-IN
Hebrew lang=he
Hindi (India) lang=hi-IN
Hungarian lang=hu
Icelandic lang=is
Indonesian lang=id
Irish lang=ga-IE
Italian lang=it
Kannada lang=kn
Kazakh lang=kk
Khmer lang=km
Korean lang=ko
Latvian lang=lv
Ligurian lang=lij
Lithuanian lang=lt
Lower Sorbian lang=dsb
Macedonian lang=mk
Maithili lang=mai
Malay lang=ms
Malayalam lang=ml
Marathi lang=mr
Norwegian (Bokmål) lang=nb-NO
Norwegian (Nynorsk) lang=nn-NO
Oriya lang=or
Persian lang=fa
Polish lang=pl
Portuguese (Brazilian) lang=pt-BR
Portuguese (Portugal) lang=pt-PT
Punjabi (India) lang=pa-IN
Romanian lang=ro
Romansh lang=rm
Russian lang=ru
Serbian lang=sr
Sinhala lang=si
Slovak lang=sk
Slovenian lang=sl
Songhai lang=son
Spanish (Argentina) lang=es-AR
Spanish (Chile) lang=es-CL
Spanish (Mexico) lang=es-MX
Spanish (Spain) lang=es-ES
Swedish lang=sv-SE
Tamil lang=ta
Telugu lang=te
Thai lang=th
Turkish lang=tr
Ukrainian lang=uk
Upper Sorbian lang=hsb
Uzbek lang=uz
Vietnamese lang=vi
Welsh lang=cy
Xhosa lang=xh
Mozilla Release Engineering
Email: [email protected]
Web: https://groups.google.com/forum/#!forum/mozilla.release.engineering
``
答案3
Google 在这件事上非常有帮助。这是 Firefox 发行版的 FTP 链接。它包含撰写本文时的所有公开 Firefox 发行版和未来/测试版,因此看来这就是他们现在使用的。每个相应的发行版目录都包含您要查找的二进制文件(45MB 版本,而不是 240KB 存根)。
https://ftp.mozilla.org/pub/firefox/releases/
当然 - 还有其他方法可以下载它。您提到了 cURL;如果这是一个编程问题,请在 StackOverflow 上提问并具体说明(使用什么语言、您尝试过什么等)。否则,我们需要知道您想要完成什么,因为就目前而言,我不确定您的问题是什么。