# 使用 Homebrew, apk, MacPorts, Nix, pacman, scoop, winget 安装 geckodriver

查看 geckodriver 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:geckodriver
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install geckodriver
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install geckodriver
```

  证据: MacPorts ports tree: www/geckodriver/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add geckodriver
```

  证据: Alpine Linux edge package indexes: geckodriver from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#geckodriver
```

  证据: nixpkgs package indexes: pkgs/by-name/ge/geckodriver/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S geckodriver
```

  证据: Arch Linux sync databases: geckodriver from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/geckodriver
```

  证据: Scoop official bucket manifest trees: bucket/geckodriver.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Mozilla.GeckoDriver -e
```

  证据: Windows Package Manager source index: Mozilla.GeckoDriver from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:geckodriver
- **软件包管理器:** Homebrew
- **版本:** 0.37.1
- **来源摘要:** WebDriver Marionette proxy
- **主页:** <https://firefox-source-docs.mozilla.org/testing/geckodriver/>
- **仓库:** <https://github.com/mozilla/geckodriver>
- **最后更新:** 2026-07-20T12:43:50Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- geckodriver (别名)
- wires (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.37.1
## 项目历史与用法

geckodriver is Mozilla's WebDriver proxy for controlling Gecko-based browsers such as Firefox from W3C WebDriver-compatible clients.

### 项目历史

Mozilla's documentation describes geckodriver as a proxy between WebDriver clients and Gecko browsers. It exposes the WebDriver HTTP API and translates commands to Firefox's remote protocol, making it the browser-specific bridge for automation clients.

### 采用历史

The Firefox Source Docs note that Selenium 3 made geckodriver the default WebDriver implementation for Firefox. The same usage documentation explains that FirefoxDriver was discontinued with Firefox 47 because it did not support Gecko's multi-process architecture.

### 使用方式

Package users install the geckodriver binary and make it available on PATH, or point Selenium clients at it explicitly. The official usage docs also call out container and Snap packaging details, because geckodriver and Firefox need to run in compatible filesystem and runtime environments.

### 为什么软件包爱好者会关心

geckodriver matters to package-manager users because it is the small native executable that makes Firefox automation work across Selenium, WebDriver test suites, CI jobs, and browser-compatibility tooling.

### 时间线

- Firefox 47: FirefoxDriver was discontinued for lack of multi-process Gecko support.
- Selenium 3: geckodriver became the default WebDriver implementation for Firefox.

### Related projects

- Firefox, Gecko, Marionette, Selenium, and the W3C WebDriver protocol are the main adjacent projects named or linked from Mozilla's geckodriver documentation.

### 来源

- <https://firefox-source-docs.mozilla.org/testing/geckodriver/>
- <https://firefox-source-docs.mozilla.org/testing/geckodriver/Usage.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - geckodriver: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/geckodriver/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - geckodriver - 0.37.1-r0: normalized package name match | Alpine Linux edge package indexes: geckodriver from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Proxy for using W3C WebDriver compatible clients to interact with Gecko-based browsers. | https://github.com/mozilla/geckodriver
- pacman - geckodriver - 0.37.1-1: normalized package name match | Arch Linux sync databases: geckodriver from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers. | https://github.com/mozilla/geckodriver
- MacPorts - geckodriver: normalized package name match | MacPorts ports tree: www/geckodriver/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/geckodriver: normalized package name match | Scoop official bucket manifest trees: bucket/geckodriver.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Mozilla.GeckoDriver: normalized package name match | Windows Package Manager source index: Mozilla.GeckoDriver from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/geckodriver.yml](https://github.com/mxcl/pkgdb/blob/main/combined/geckodriver.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
