# 使用 Homebrew, apk, apt, MacPorts, pacman, Nix, winget 安装 fabric

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

## 安装

```sh
sudo av install brew:fabric
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fabric
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fabric
```

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

### Linux

- apk (92%):

```sh
sudo apk add fabric
```

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

- Debian apt (92%):

```sh
sudo apt install fabric
```

  证据: Debian stable package indexes: fabric from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- pacman (92%):

```sh
sudo pacman -S fabric
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#Fabric
```

  证据: nixpkgs package indexes: Fabric from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

### Windows

- winget (92%):

```sh
winget install --id FabricMC.FabricInstaller -e
```

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

## 软件包事实

- **软件包键:** brew:fabric
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fabric>
- **版本:** 3.2.3
- **来源摘要:** Library and command-line tool for SSH
- **主页:** <https://www.fabfile.org/>
- **仓库:** <https://github.com/fabric/fabric>
- **上游文档:** <https://www.fabfile.org/>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://files.pythonhosted.org/packages/e3/7e/29cd6237c3b7ce79c3ca945eb99ab5affd101db54b2f7a78dde0cfa19fd4/fabric-3.2.3.tar.gz>
- **最后更新:** 2026-05-11T11:37:38Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- fab (cli)
- fab (别名)

## 依赖

- cryptography
- libsodium
- python@3.14

## 构建依赖

- pkgconf
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.2.3
- 管理器更新时间: 2026-05-11
- 本地数据: OK
- 上游仓库: https://www.fabfile.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Fabric is the Python `fab` tool and library for running commands over SSH, historically popular for deployment and remote administration.

### 项目历史

Fabric began as a Pythonic remote execution and deployment tool built around `fabfile` tasks. Its current website describes Fabric as a high-level Python library for executing shell commands remotely over SSH and returning useful Python objects.

The 1.x line became a common deployment-era tool for Python projects because it let teams write Python functions as remote tasks and invoke them with the `fab` command. Its legacy changelog shows the 1.0 series active in 2011, including task execution, parallel execution, host and role handling, file transfer, sudo, and other features associated with classic fabfiles.

Fabric 2.0, released in May 2018, was a major rewrite. The official upgrade guide calls modern Fabric a near-total reimplementation and reorganization: task execution and local command behavior moved toward Invoke, while SSH behavior was organized around explicit `Connection` and `Config` objects on top of Paramiko.

The modern 3.x line continues that architecture. The current changelog explicitly warns users that Fabric is largely a wrapper around Paramiko and Invoke, so capabilities may improve when those dependencies improve.

### 采用历史

Fabric's adoption was strongest when Python teams wanted deployment automation without a full configuration-management system. A `fab deploy` command in a repository could run shell commands, copy files, restart services, or coordinate multiple hosts using ordinary Python.

The long-lived 1.x line created a migration challenge of its own. The project kept legacy documentation and eventually merged the `fabric3` fork back into the v1 branch in 2022 so users could port old Fabric 1 code to Python 3 before deciding whether to move to Fabric 2+.

Modern Fabric has a different adoption profile: it is less magic global state and more explicit SSH library plus task runner integration. The official upgrade docs even suggest that users who only used Fabric 1 for local tasks can sidegrade to Invoke instead.

### 使用方式

In modern Fabric, users create `Connection` objects and call methods like `run`, or define tasks that can be invoked by the `fab` CLI. The docs show single-host commands, serial or grouped multi-host commands, Python functions targeted at connections, file transfer, and integration with Invoke's task model.

In legacy usage, users wrote fabfiles and called named tasks from the shell. In modern usage, the same broad goal remains, but configuration, SSH auth, gateways, command execution, and task composition are more explicit and object-oriented.

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

Fabric is package-nerd significant because `brew install fabric` installs a Python deployment classic whose command name, `fab`, was once shorthand for lightweight SSH automation. It represents the era before containers and orchestrators absorbed much deployment scripting.

It is also a naming-collision case study. The Homebrew `fabric` formula is the Python SSH tool, while `fabric-ai` and `fabric-installer` are unrelated packages that happen to share the same display name in different ecosystems.

### 时间线

- 2009: The Fabric GitHub repository is created.
- 2011: Fabric 1.0.x releases document the mature classic fabfile era.
- 2018: Fabric 2.0.0 ships as a rewrite.
- 2022: Fabric 1.15.0 merges the fabric3 fork back into the v1 branch for Python 3 migration.
- 2023: Fabric 3.0.0 drops Python versions older than 3.6 and continues the modern architecture.
- 2026: Fabric 3.2.3 updates packaging metadata for Invoke compatibility.

### Related projects

- Paramiko provides Fabric's SSH protocol layer.
- Invoke provides subprocess execution and command-line task features used by modern Fabric.
- Patchwork and Invocations are optional companion libraries mentioned by the official docs.

### 来源

- <https://api.github.com/repos/fabric/fabric>
- <https://github.com/fabric/fabric>
- <https://www.fabfile.org/>
- <https://docs.fabfile.org/>
- <https://www.fabfile.org/changelog.html>
- <https://www.fabfile.org/changelog-v1.html>
- <https://www.fabfile.org/upgrading.html>


## 安全说明

没有找到 fabric 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fabric
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - fabric - 2.6.0-4: normalized package name match | Debian stable package indexes: fabric from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Simple Pythonic remote deployment tool | https://fabfile.org/
- Debian apt - python3-fabric - 2.6.0-4: normalized package name match | Debian stable package indexes: python3-fabric from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Simple Pythonic remote deployment tool - standalone module | https://fabfile.org/
- Nix - Fabric: normalized package name match | nixpkgs package indexes: Fabric from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - fabric - 2.6.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: fabric from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Simple Pythonic remote deployment tool | https://fabfile.org/
- Ubuntu apt - python3-fabric - 2.6.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-fabric from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Simple Pythonic remote deployment tool - standalone module | https://fabfile.org/
- apk - fabric - 3.2.2-r2: normalized package name match | Alpine Linux edge package indexes: fabric from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | simple pythonic remote deployment tool | https://www.fabfile.org/
- apk - fabric-pyc - 3.2.2-r2: normalized package name match | Alpine Linux edge package indexes: fabric-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for fabric | https://www.fabfile.org/
- pacman - fabric - 3.2.3-1: normalized package name match | Arch Linux sync databases: fabric from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Python library and command-line tool designed to streamline deploying applications or performing system administration tasks via the SSH protocol | https://www.fabfile.org/
- MacPorts - fabric: normalized package name match | MacPorts ports tree: llm/fabric/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - FabricMC.FabricInstaller: normalized package name match | Windows Package Manager source index: FabricMC.FabricInstaller from https://cdn.winget.microsoft.com/cache/source.msix
- winget - danielmiessler.Fabric: normalized package name match | Windows Package Manager source index: danielmiessler.Fabric from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [netlify-cli](https://pkg.so/zh-hans/brew/netlify-cli/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [kargo](https://pkg.so/zh-hans/brew/kargo/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [kapp](https://pkg.so/zh-hans/brew/kapp/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [deployer](https://pkg.so/zh-hans/brew/deployer/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [shub](https://pkg.so/zh-hans/brew/shub/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [kamal-proxy](https://pkg.so/zh-hans/brew/kamal-proxy/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [cartridge-cli](https://pkg.so/zh-hans/brew/cartridge-cli/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [modman](https://pkg.so/zh-hans/brew/modman/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [howdoi](https://pkg.so/zh-hans/brew/howdoi/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, cryptography, developer, developer-tools.
- [euler-py](https://pkg.so/zh-hans/brew/euler-py/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, developer, developer-tools, line.

## Combined YAML source

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


## 来源

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