# 使用 Homebrew, MacPorts, Nix, pacman 安装 mdfried

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

## 安装

```sh
sudo av install brew:mdfried
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mdfried
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mdfried
```

  证据: MacPorts ports tree: textproc/mdfried/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mdfried
```

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

- pacman (92%):

```sh
sudo pacman -S mdfried
```

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

## 软件包事实

- **软件包键:** brew:mdfried
- **软件包管理器:** Homebrew
- **版本:** 0.22.4
- **来源摘要:** Terminal markdown viewer
- **主页:** <https://github.com/benjajaja/mdfried>
- **仓库:** <https://github.com/benjajaja/mdfried>
- **最后更新:** 2026-06-21T18:47:21Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mdfried (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

mdfried is a Rust terminal Markdown viewer and pager focused on rich terminal graphics. Its distinctive feature is rendering Markdown headings as genuinely larger text or images when the terminal supports a graphics or text-sizing protocol.

### 项目历史

The GitHub repository was created in December 2024, and the crates.io package was first published later that month. The project iterated rapidly through 2025 and 2026, reaching the 0.22 series by June 2026.

The changelog shows the tool expanding from a visual Markdown viewer into a featureful terminal document browser: tree-sitter Markdown parsing, link navigation, URL and GitHub README opening, syntax highlighting, Mermaid rendering, image opening, OSC 8 clickable links, and experimental PDF support all appear in the documented 2026 releases.

### 采用历史

mdfried is newer than mdcat and mdless but already has package-manager presence. The input facts list Homebrew, MacPorts, Nix, and pacman-family packaging, while the README advertises Cargo installation, a Nix flake, release binaries, `.deb` files, and Mac and Windows binaries.

Crates.io reported the crate's creation in December 2024 and about 15,000 total downloads by 2026. Homebrew's formula tracked stable version 0.22.4 with install analytics, evidence of early but real CLI-tool adoption.

### 使用方式

The basic invocation is `mdfried ./path/to.md`. It can also open URLs that serve Markdown and `github:owner/repo` targets when a README exists on the default branch.

On first run, users may choose a font if automatic detection is not enough; the selection is written to `~/.config/mdfried/config.toml`. `--setup` repeats font setup and `--print-config` prints a fuller configuration example.

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

mdfried is notable because it pushes terminal Markdown viewing into the modern graphics-terminal era. Packaging it involves more than installing a text filter: the formula includes chafa and GTK/glib-related dependencies through Homebrew, and runtime behavior varies by terminal image protocol.

For package nerds, it is also a fast-moving Rust package that crosses Cargo, Nix, Homebrew, binary releases, and Debian-style artifacts while still pre-1.0.

### 时间线

- 2024: GitHub repository and crates.io package appeared in December.
- 2026: Version 0.18.0 used tree-sitter/tree-sitter-md for Markdown parsing.
- 2026: Version 0.20.1 added URL and GitHub README opening.
- 2026: Version 0.21.0 added code syntax highlighting and Mermaid rendering.
- 2026: Version 0.22.0 added OSC 8 clickable links.

### Related projects

- mdfried overlaps with mdcat and mdless as a terminal Markdown viewer, but it emphasizes large rendered headings, rich image support, pager navigation, and terminal graphics protocols.
- Its README references ratatui-image, chafa, arborium, mermaid rendering, Sixel, kitty, and iTerm2 protocols as important parts of its ecosystem.

### 来源

- <https://crates.io/crates/mdfried>
- <https://formulae.brew.sh/formula/mdfried>
- <https://github.com/benjajaja/mdfried#readme>
- <https://github.com/benjajaja/mdfried/blob/master/assets/docs/CHANGELOG.md>
- source_facts.package-manager


## 安全说明

没有找到 mdfried 的匹配本地密钥处理 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/mdfried/config.toml
## 其他软件包管理器记录

- Nix - mdfried: normalized package name match | nixpkgs package indexes: pkgs/by-name/md/mdfried/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - mdfried - 0.22.4-1: normalized package name match | Arch Linux sync databases: mdfried from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A markdown viewer for the terminal that renders images and big headers | https://github.com/benjajaja/mdfried
- MacPorts - mdfried: normalized package name match | MacPorts ports tree: textproc/mdfried/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/mdfried.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mdfried.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
