# 使用 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
- **版本:** 40.36.0
- **来源摘要:** Python-based fake data generator
- **主页:** <https://faker.readthedocs.io>
- **仓库:** <https://github.com/joke2k/faker>
- **最后更新:** 2026-07-24T23:52:44Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- faker (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 40.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。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
