# 使用 Homebrew, Nix 安装 mktxp

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

## 安装

```sh
sudo av install brew:mktxp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mktxp
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mktxp
```

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

## 软件包事实

- **软件包键:** brew:mktxp
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mktxp>
- **版本:** 1.2.19
- **来源摘要:** Prometheus Exporter for Mikrotik RouterOS devices
- **主页:** <https://github.com/akpw/mktxp>
- **仓库:** <https://github.com/akpw/mktxp>
- **上游文档:** <https://github.com/akpw/mktxp>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://files.pythonhosted.org/packages/d2/a7/65696f79c7a7d275c7d08d82155b26460ce34d5a08d3014e9666876f4027/mktxp-1.2.19.tar.gz>
- **最后更新:** 2026-07-12T14:35:14Z
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- mktxp (cli)
- mktxp (别名)

## 依赖

- libyaml
- python@3.14

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 1.2.19
- 管理器更新时间: 2026-07-12
- 本地数据: OK
- 上游仓库: https://github.com/akpw/mktxp
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

MKTXP is a Python command-line Prometheus exporter for MikroTik RouterOS devices. It exports RouterOS metrics for Prometheus, can print selected metrics directly on the command line, and is commonly paired with Grafana dashboards or the companion mktxp-stack deployment.

### 项目历史

The upstream project is maintained at akpw/mktxp on GitHub and describes itself as a Prometheus exporter for MikroTik RouterOS devices. Its README documents local installs, Docker images, Kubernetes examples, CLI commands, RouterOS user setup, and a system configuration file for exporter runtime settings.

The package became a PyPI-distributed Python application early in 2021, with PyPI release history beginning at 0.14 on January 4, 2021. The project reached 1.0 on January 4, 2023 and has continued through the 1.2 series, with GitHub marking v1.2.19 as the latest release on July 10, 2026.

### 采用历史

Package-manager adoption reflects the tool's role in home-lab and network-monitoring workflows: the input records Homebrew and Nix package names, while the upstream README documents installation from PyPI, GitHub source, GitHub Container Registry, and deployment through Kubernetes or the mktxp-stack project.

Later 1.2 releases expanded operational use cases with custom labels, multi-router/concurrent scrape support, multi-target exporter support, Docker path improvements, and richer RouterOS collectors. These are packaging-relevant because users often run MKTXP as a service or containerized exporter rather than as an occasional CLI.

### 使用方式

Typical use starts by editing mktxp.conf with RouterOS addresses and API credentials, then running mktxp export to serve Prometheus metrics on the configured HTTP listener. The README also documents mktxp print for command-line inspection and mktxp edit or mktxp edit -i for editing main and system configuration.

Configuration is centered on mktxp.conf for router entries and _mktxp.conf for system options. The README documents XDG-style local configuration under ~/.config/mktxp, legacy local configuration under ~/mktxp, and container-oriented configuration under /etc/mktxp via --cfg-dir or bind mounts.

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

MKTXP is notable to package maintainers because it sits at the intersection of Python packaging, observability tooling, and appliance monitoring. It ships as a CLI, a PyPI package, a Homebrew formula, a Nix package, and a GitHub container image, so packaging quality affects both interactive local use and long-running service deployments.

The 2026 move to pyproject.toml and improved Docker/XDG configuration paths matters for downstream packaging: it reduces friction around build metadata, non-root containers, bind-mounted config directories, and service-manager integration.

### 时间线

- 2021-01-04: PyPI release history begins with version 0.14.
- 2023-01-04: Version 1.0 released on PyPI.
- 2025-09-15: v1.2.14 release notes include injectable device-level custom labels and dedicated config sections for new parameters.
- 2025-12-22: v1.2.16 release notes describe Dockerfile improvements and support for /etc/mktxp or XDG standard paths.
- 2026-07-10: v1.2.19 marked latest on GitHub and published on PyPI.

### Related projects

- mktxp-stack is the upstream companion project for a ready-to-go MKTXP monitoring stack.
- Prometheus and Grafana are the primary monitoring and visualization tools documented by the project.
- MikroTik RouterOS is the monitored network-device platform.

### 来源

- <https://github.com/akpw/mktxp>
- <https://github.com/akpw/mktxp#readme>
- <https://github.com/akpw/mktxp/releases>
- <https://pypi.org/project/mktxp/>
- source_facts.package-manager


## 安全说明

没有找到 mktxp 的匹配本地密钥处理 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/mktxp/mktxp.conf, ~/.config/mktxp/_mktxp.conf, ~/mktxp/mktxp.conf, ~/mktxp/_mktxp.conf, /etc/mktxp/mktxp.conf, /etc/mktxp/_mktxp.conf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mktxp
- **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

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

- Nix - mktxp: normalized package name match | nixpkgs package indexes: pkgs/by-name/mk/mktxp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [onionprobe](https://www.automicvault.com/zh-hans/pkg/brew/onionprobe/) - Shares av.db curated category or tags: cli, grafana, monitoring, networking.
- [cloudprober](https://www.automicvault.com/zh-hans/pkg/brew/cloudprober/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [darkstat](https://www.automicvault.com/zh-hans/pkg/brew/darkstat/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [dish](https://www.automicvault.com/zh-hans/pkg/brew/dish/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [easeprobe](https://www.automicvault.com/zh-hans/pkg/brew/easeprobe/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [mrtg](https://www.automicvault.com/zh-hans/pkg/brew/mrtg/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [netshow](https://www.automicvault.com/zh-hans/pkg/brew/netshow/) - Shares av.db curated category or tags: cli, monitoring, networking, python.
- [liboping](https://www.automicvault.com/zh-hans/pkg/brew/liboping/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [archgw](https://www.automicvault.com/zh-hans/pkg/brew/archgw/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, libyaml, networking, python, python-3-14.
- [gdown](https://www.automicvault.com/zh-hans/pkg/brew/gdown/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, networking, python, python-3-14.

## Combined YAML source

View the package source record on GitHub. [combined/mktxp.yml](https://github.com/automic-vault/db/blob/main/combined/mktxp.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
