# 使用 Homebrew, Nix, pacman, chocolatey 安装 md-tui

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

## 安装

```sh
sudo av install brew:md-tui
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install md-tui
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#md-tui
```

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

- pacman (92%):

```sh
sudo pacman -S md-tui
```

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

### Windows

- Chocolatey (92%):

```sh
choco install MDT
```

  证据: Chocolatey community package catalog: MDT from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='8.8696','genymotion'

## 软件包事实

- **软件包键:** brew:md-tui
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/md-tui>
- **版本:** 0.10.3
- **来源摘要:** Markdown renderer in the terminal written in rust
- **主页:** <https://github.com/henriklovhaug/md-tui>
- **仓库:** <https://github.com/henriklovhaug/md-tui>
- **许可证:** AGPL-3.0-or-later
- **源码归档:** <https://github.com/henriklovhaug/md-tui/archive/refs/tags/v0.10.3.tar.gz>
- **最后更新:** 2026-06-27T19:03:26Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mdt (cli)
- mdt (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.10.3
- 管理器更新时间: 2026-06-27
- 本地数据: OK
- 上游仓库: https://github.com/henriklovhaug/md-tui
- 检测到的最新版本: v0.10.3 (当前)
## 项目历史与用法

MD-TUI is a Rust terminal application for viewing and navigating Markdown files. It focuses on keyboard-driven reading, link navigation, file-tree browsing, search, syntax highlighting, optional terminal image rendering, and a configurable terminal UI.

### 项目历史

The public GitHub repository was created in October 2023. The README presents MD-TUI as a terminal-based Markdown viewer rather than a converter: users run `mdt <file.md>`, run `mdt` to browse Markdown files under the current directory, or pipe Markdown into the program.

The project grew into a packaged Rust CLI with a documented configuration file at `~/.config/mdt/config.toml`, release binaries, Cargo installation, Homebrew, Arch, Conda-Forge/Pixi, and Nix options. Its README also notes a related Neovim plugin variant and possible library use, though library use is not the primary documented surface.

### 采用历史

By July 2026, GitHub metadata showed about 491 stars, 28 forks, and 40 releases, with v0.10.3 published in June 2026. That is moderate adoption for a focused terminal reader, especially one aimed at users who prefer reading Markdown inside a terminal rather than opening a browser or editor preview.

The README's package list shows adoption across several packaging communities: Arch, Cargo, Conda-Forge via Pixi, Homebrew, and Nix. This is exactly the pattern common to small Rust TUIs that become useful enough to package outside crates.io.

### 使用方式

Typical usage is `mdt README.md`, plain `mdt` for recursive Markdown discovery with a file tree, or piping content with `cat README.md | mdt`. The default key bindings support scrolling, search, link selection, details folding, hover previews, editor handoff through `$EDITOR`, sorting, and quitting.

The official README documents `~/.config/mdt/config.toml` for keyboard and color/misc settings. It also lists supported syntax highlighting languages for code blocks, including shell, C/C++, CSS, Go, HTML, Java, JavaScript, JSON, Lua, Python, Rust, TypeScript, YAML, and others.

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

MD-TUI is package-nerd significant as a modern Rust TUI in the Markdown viewer niche: small binary, terminal-first workflow, config under XDG-style paths, and distribution through Cargo plus system package managers. It sits beside tools like `glow` and editor previews, but chooses file-tree navigation and key-driven reading as its shape.

Its executable name, `mdt`, is also worth recording because the package name is `md-tui` while the command users run is shorter. That distinction matters for package databases and command-to-package lookup.

### 时间线

- 2023-10: Public GitHub repository created.
- 2024-02: v0.2.1 release published.
- 2026-06: v0.10.3 release published.
- 2026-07: Repository metadata shows 40 releases and package instructions for Cargo, Homebrew, Arch, Conda-Forge/Pixi, and Nix.

### Related projects

- MD-TUI is related to terminal Markdown viewers, Rust TUI applications, `$EDITOR`-driven note workflows, and the companion Neovim preview plugin mentioned by the README.

### 来源

- <https://api.github.com/repos/henriklovhaug/md-tui>
- <https://api.github.com/repos/henriklovhaug/md-tui/releases>
- <https://github.com/henriklovhaug/md-tui>


## 安全说明

没有找到 md-tui 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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/mdt/config.toml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** md-tui
- **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 - md-tui: normalized package name match | nixpkgs package indexes: pkgs/by-name/md/md-tui/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - md-tui - 0.10.3-1: normalized package name match | Arch Linux sync databases: md-tui from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Markdown renderer in the terminal | https://github.com/henriklovhaug/md-tui
- Chocolatey - MDT: installed executable or alias match | Chocolatey community package catalog: MDT from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='8.8696','genymotion'


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [mdcat](https://pkg.so/zh-hans/brew/mdcat/) - Shares pkgdb curated category or tags: cli, markdown, productivity, rust, terminal.
- [mdfried](https://pkg.so/zh-hans/brew/mdfried/) - Shares pkgdb curated category or tags: cli, markdown, productivity, rust, terminal.
- [mdless](https://pkg.so/zh-hans/brew/mdless/) - Shares pkgdb curated category or tags: cli, markdown, productivity, terminal, viewer.
- [treemd](https://pkg.so/zh-hans/brew/treemd/) - Shares pkgdb curated category or tags: cli, markdown, productivity, terminal, viewer.
- [ekphos](https://pkg.so/zh-hans/brew/ekphos/) - Shares pkgdb curated category or tags: cli, markdown, productivity, rust, terminal.
- [yazi](https://pkg.so/zh-hans/brew/yazi/) - Shares pkgdb curated category or tags: cli, productivity, rust, terminal.
- [presenterm](https://pkg.so/zh-hans/brew/presenterm/) - Shares pkgdb curated category or tags: cli, markdown, productivity, terminal.
- [slides](https://pkg.so/zh-hans/brew/slides/) - Shares pkgdb curated category or tags: cli, markdown, productivity, terminal.

## Combined YAML source

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


## 来源

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