# 使用 Homebrew, apt 安装 faker

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

## 安装

```sh
sudo av install brew:faker
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install faker
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install faker
```

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

## 软件包事实

- **软件包键:** brew:faker
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/faker>
- **版本:** 40.36.0
- **来源摘要:** Python-based fake data generator
- **主页:** <https://faker.readthedocs.io>
- **仓库:** <https://github.com/joke2k/faker>
- **上游文档:** <https://faker.readthedocs.io>
- **许可证:** MIT
- **源码归档:** <https://github.com/joke2k/faker/archive/refs/tags/v40.36.0.tar.gz>
- **最后更新:** 2026-07-24T23:52:44Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- faker (cli)
- faker (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 40.36.0
- 管理器更新时间: 2026-07-24
- 本地数据: OK
- 上游仓库: https://github.com/joke2k/faker
- 检测到的最新版本: v40.36.0 (当前)
## 项目历史与用法

Faker is a Python package and command-line tool for generating fake data such as names, addresses, text, localized values, and provider-specific test fixtures.

### 项目历史

The project presents itself as a Python fake-data generator inspired by PHP Faker, Perl Faker, and Ruby Faker. PyPI metadata has an archived 0.0.2 upload in 2010, while the repository changelog records 0.1 as the first release in 2012; subsequent history shows years of provider, locale, CLI, and compatibility work.

Faker was previously distributed under the fake-factory name; the official README says that package name was deprecated by the end of 2016, and the changelog records the PyPI package rename to Faker in 2016.

### 采用历史

Faker became common infrastructure for Python tests, fixtures, demos, anonymization workflows, and sample-data generation. The official docs call out direct Python use, command-line invocation, pytest fixture support, bundled providers, community providers, and localization.

The input package facts show it packaged for Homebrew, Debian, and Ubuntu, which reflects adoption beyond PyPI into operating-system and developer workstation package channels.

### 使用方式

Typical use starts with installing Faker and constructing a faker.Faker() generator, then calling provider methods such as name(), address(), text(), or locale-specific providers. The installed faker CLI can emit generated values directly and supports output files, locales, repeat counts, separators, and custom provider imports.

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

Package maintainers care about Faker because it sits at the intersection of libraries and CLI tooling: it exposes a Python API, a command-line executable, localization datasets, pytest integration, and a large provider surface that changes as real-world formats evolve.

Its package-history details matter during dependency curation because older ecosystems may still reference fake-factory, Python 2 compatibility ended at the 3.x/4.x transition, and modern releases continuously add locale data and provider behavior.

### 时间线

- 2010: PyPI metadata has an archived Faker 0.0.2 upload.
- 2012: Official changelog records Faker 0.1 as the first release.
- 2016: PyPI package was renamed to Faker and fake-factory was deprecated.
- 2018: Faker 1.0.0 was released.
- 2019: Faker 3.0.0 added multiple-locale data generation.
- 2020: Faker 4.0.0 removed Python 2.7 support; Faker 5.0.0 dropped Python 3.5 support.

### Related projects

- The official README credits PHP Faker, Perl Faker, and Ruby Faker as inspirations, and the docs list bundled and community providers as extension points around the core generator.

### 来源

- <https://faker.readthedocs.io/en/master/ - official documentation for purpose, usage, providers, localization, pytest fixture, and CLI.>
- <https://pypi.org/pypi/Faker/json - official PyPI metadata for package name, summary, project URLs, and release metadata.>
- <https://raw.githubusercontent.com/joke2k/faker/master/CHANGELOG.md - official changelog for first release, package rename, major releases, multiple-locale support, and Python support changes.>
- <https://raw.githubusercontent.com/joke2k/faker/master/README.rst - official README for project description, inspirations, compatibility notes, fake-factory deprecation, and basic usage.>
- source_facts.package-manager - supplied input lists Homebrew, Debian, and Ubuntu packaging.


## 安全说明

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


## 源数据库详情

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

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

- Debian apt - faker - 33.3.1-1: normalized package name match | Debian stable package indexes: faker from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python program that generates fake data | https://github.com/joke2k/faker
- Debian apt - faker-doc - 33.3.1-1: normalized package name match | Debian stable package indexes: faker-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Faker is a Python library that generates fake data (Documentation) | https://github.com/joke2k/faker
- Debian apt - python3-fake-factory - 33.3.1-1: normalized package name match | Debian stable package indexes: python3-fake-factory from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Faker is a Python library that generates fake data (Python 3) | https://github.com/joke2k/faker
- Ubuntu apt - faker - 22.0.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: faker from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python program that generates fake data | https://github.com/joke2k/faker
- Ubuntu apt - python3-fake-factory - 22.0.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-fake-factory from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Faker is a Python library that generates fake data (Python 3) | https://github.com/joke2k/faker


## 相关链接

- [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.
- [csvkit](https://pkg.so/zh-hans/brew/csvkit/) - Shares pkgdb curated category or tags: cli, data, python.
- [visidata](https://pkg.so/zh-hans/brew/visidata/) - Shares pkgdb curated category or tags: cli, data, python.
- [scrapy](https://pkg.so/zh-hans/brew/scrapy/) - Shares pkgdb curated category or tags: cli, data, python.
- [sqlite-utils](https://pkg.so/zh-hans/brew/sqlite-utils/) - Shares pkgdb curated category or tags: cli, data, python.
- [iredis](https://pkg.so/zh-hans/brew/iredis/) - Shares pkgdb curated category or tags: cli, data, python.
- [kaskade](https://pkg.so/zh-hans/brew/kaskade/) - Shares pkgdb curated category or tags: cli, data, python.
- [trafilatura](https://pkg.so/zh-hans/brew/trafilatura/) - Shares pkgdb curated category or tags: cli, data, python.
- [rig](https://pkg.so/zh-hans/brew/rig/) - Shares pkgdb curated category or tags: cli, data, fake-data, test-data.
- [faker-br](https://pkg.so/zh-hans/npm/faker-br/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, faker, generator, test.
- [jr](https://pkg.so/zh-hans/brew/jr/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, data-generation, generation, test.
- [adios2](https://pkg.so/zh-hans/brew/adios2/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, generation, python, python-3-14.

## Combined YAML source

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


## 来源

- pkg.so package database
- 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
