# 使用 Homebrew, Nix, apt 安装 lexicon

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

## 安装

```sh
sudo av install brew:lexicon
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lexicon
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#lexicon
```

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

- Ubuntu apt (92%):

```sh
sudo apt install lexicon
```

  证据: Ubuntu 24.04 LTS package indexes: lexicon from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## 软件包事实

- **软件包键:** brew:lexicon
- **软件包管理器:** Homebrew
- **版本:** 3.25.2
- **来源摘要:** Manipulate DNS records on various DNS providers in a standardized way
- **主页:** <https://github.com/dns-lexicon/dns-lexicon>
- **仓库:** <https://github.com/dns-lexicon/dns-lexicon>
- **最后更新:** 2026-06-20T11:14:59Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lexicon (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

DNS-Lexicon, packaged by Homebrew as `lexicon`, is a CLI and Python library for manipulating DNS records through a provider-neutral interface. Its practical niche is automation: scripts and certificate clients can create TXT, A, CNAME, and other records without learning each DNS provider API.

### 项目历史

Lexicon began in the `AnalogJ/lexicon` repository, created on February 2, 2016. The original project described itself as a standardized way to manipulate DNS records across providers and accumulated a large provider-oriented ecosystem.

The project moved to the `dns-lexicon/dns-lexicon` repository starting with version 3.20.0. The old repository README directs users and issue reporters to the new repository, while the DNS-Lexicon changelog records 3.20.0 on December 12, 2024 and subsequent 3.20.x/3.21.x releases in the new line.

### 采用历史

Lexicon's adoption is tied to ACME DNS-01 automation. The PyPI project page for `dns-lexicon` version 2.1.22 stated that Lexicon was designed for automation, specifically Let's Encrypt, and the official docs include installation, Docker, configuration, provider options, integration, and developer-guide sections for adding providers.

### 使用方式

As a CLI, Lexicon takes a provider name followed by create, update, delete, or list operations for DNS records. As a library, it exposes the same idea to Python code through a common client/configuration layer. Credentials live in provider-specific configuration, so automation can swap DNS providers with less custom glue.

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

Package nerds care about Lexicon because it is adapter glue packaged as a first-class tool. It turns dozens of vendor APIs into one command surface, making certificate automation, dynamic DNS workflows, and infrastructure scripts more portable.

### 时间线

- 2016: The original `AnalogJ/lexicon` repository was created on February 2, 2016.
- 2019: DNS-Lexicon changelog entries show the 3.1.x and 3.2.x release line in active use.
- 2024: Version 3.19.0 was released from the original repository on December 6, 2024.
- 2024: Version 3.20.0 on December 12, 2024 marked the move to `dns-lexicon/dns-lexicon`.
- 2026: The documentation changelog records 3.25.2 on May 10, 2026.

### Related projects

- Lexicon is related to Let's Encrypt and ACME DNS-01 clients such as Certbot and dehydrated hooks. It also sits beside DNS automation tools such as lego, acme.sh integrations, octoDNS, and provider-specific DNS plugins.

### 来源

- <https://api.github.com/repos/AnalogJ/lexicon>
- <https://api.github.com/repos/dns-lexicon/dns-lexicon>
- <https://dns-lexicon.github.io/dns-lexicon/>
- <https://dns-lexicon.github.io/dns-lexicon/changelog.html>
- <https://dns-lexicon.github.io/dns-lexicon/user_guide.html>
- <https://formulae.brew.sh/formula/lexicon>
- <https://github.com/AnalogJ/lexicon>
- <https://github.com/dns-lexicon/dns-lexicon>
- <https://pypi.org/project/dns-lexicon/2.1.22/>


## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $CONFIG_DIR/lexicon.yml, $CONFIG_DIR/lexicon_<provider>.yml

## Credential files

- Unix: $CONFIG_DIR/lexicon.yml, $CONFIG_DIR/lexicon_<provider>.yml
## 其他软件包管理器记录

- Nix - lexicon: normalized package name match | nixpkgs package indexes: lexicon from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - lexicon - 3.17.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: lexicon from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CLI for manipulating DNS records on various DNS providers | https://github.com/AnalogJ/lexicon
- Ubuntu apt - python3-lexicon - 3.17.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-lexicon from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Manipulate DNS records on various DNS providers (Python 3) | https://github.com/AnalogJ/lexicon


## Combined YAML source

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


## 来源

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