# 使用 Homebrew, apt, dnf, Nix, pacman, zypper 安装 marisa

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

## 安装

```sh
sudo av install brew:marisa
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install marisa
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install marisa
```

  证据: Debian stable package indexes: marisa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install marisa
```

  证据: Fedora Rawhide package metadata: marisa from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#marisa
```

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

- pacman (92%):

```sh
sudo pacman -S marisa
```

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

- zypper (92%):

```sh
sudo zypper install marisa
```

  证据: openSUSE Tumbleweed package metadata: marisa from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:marisa
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/marisa>
- **版本:** 0.3.1
- **来源摘要:** Matching Algorithm with Recursively Implemented StorAge
- **主页:** <https://github.com/s-yata/marisa-trie>
- **仓库:** <https://github.com/s-yata/marisa-trie>
- **许可证:** BSD-2-Clause OR LGPL-2.1-or-later
- **源码归档:** <https://github.com/s-yata/marisa-trie/archive/refs/tags/v0.3.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- marisa-benchmark (cli)
- marisa-build (cli)
- marisa-common-prefix-search (cli)
- marisa-dump (cli)
- marisa-lookup (cli)
- marisa-predictive-search (cli)
- marisa-reverse-lookup (cli)
- marisa-benchmark (别名)
- marisa-build (别名)
- marisa-common-prefix-search (别名)
- marisa-dump (别名)
- marisa-lookup (别名)
- marisa-predictive-search (别名)
- marisa-reverse-lookup (别名)

## 构建依赖

- cmake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.3.1
- 本地数据: OK
- 上游仓库: https://github.com/s-yata/marisa-trie
- 检测到的最新版本: v0.3.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

MARISA is a compact static trie implementation whose name expands to Matching Algorithm with Recursively Implemented StorAge. The Homebrew package exposes libmarisa and its dictionary-building/search command-line tools rather than an end-user application.

### 项目历史

The official repository describes MARISA as a static, space-efficient trie data structure and libmarisa as the C++ implementation. Its README emphasizes dictionary operations such as lookup, reverse lookup, common-prefix search, and predictive search, and compares the MARISA trie favorably against other trie implementations on an English Wikipedia title dataset.

The current GitHub repository was created in 2016 and still publishes source and binary-oriented build instructions with CMake. The project has continued with modern releases, including v0.3.1 in July 2025, after earlier 0.2.x and 0.3.x tags.

### 采用历史

MARISA entered package-manager culture as a small native library plus utilities: the supplied Homebrew facts list packages in Homebrew, Debian/Ubuntu, Fedora, Nix, Arch, and openSUSE families. Its adoption is strongest where compact dictionaries and prefix search matter more than a standalone user interface.

The GitHub project has hundreds of stars and forks, indicating a modest but durable user base for a specialized data-structure library.

### 使用方式

Typical CLI usage is to build a MARISA-based dictionary with marisa-build and inspect or query it with tools such as marisa-lookup, marisa-reverse-lookup, marisa-common-prefix-search, and marisa-predictive-search. Library users embed libmarisa when they need static dictionaries with compact storage and fast lookup behavior.

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

MARISA is the kind of formula package maintainers keep around because other software can depend on it quietly. It is not a broad Markdown-style tool; it is a compact C++ library with testable command-line utilities, a permissive/copyleft dual license, and cross-distro packaging.

### 时间线

- 2016: Current GitHub repository created.
- 2025: v0.3.1 listed as the latest GitHub release.
- 2026: Package-manager metadata shows Homebrew, Debian/Ubuntu, Fedora, Nix, Arch, and openSUSE coverage.

### Related projects

- The README compares MARISA with darts-clone and tx-trie as alternative compact trie implementations.
- Bindings and language files in the repository indicate use from C++, C, Python, Ruby, and Perl-adjacent tooling.

### 来源

- <https://api.github.com/repos/s-yata/marisa-trie>
- <https://github.com/s-yata/marisa-trie>
- <https://www.s-yata.jp/marisa-trie/docs/readme.en.html>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - libmarisa-dev - 0.2.6-19: normalized package name match | Debian stable package indexes: libmarisa-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libmarisa | https://github.com/s-yata/marisa-trie
- Debian apt - libmarisa-perl - 0.2.6-19: normalized package name match | Debian stable package indexes: libmarisa-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl bindings for MARISA | https://github.com/s-yata/marisa-trie
- Debian apt - libmarisa0 - 0.2.6-19: normalized package name match | Debian stable package indexes: libmarisa0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library to provide an implementation of MARISA | https://github.com/s-yata/marisa-trie
- Debian apt - marisa - 0.2.6-19: normalized package name match | Debian stable package indexes: marisa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command line tools for libmarisa | https://github.com/s-yata/marisa-trie
- Debian apt - python3-marisa - 0.2.6-19: normalized package name match | Debian stable package indexes: python3-marisa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python3 bindings for MARISA | https://github.com/s-yata/marisa-trie
- Debian apt - ruby-marisa - 0.2.6-19: normalized package name match | Debian stable package indexes: ruby-marisa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Ruby bindings for MARISA | https://github.com/s-yata/marisa-trie
- Nix - marisa: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/marisa/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libmarisa-dev - 0.2.6-14ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: libmarisa-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | development files for libmarisa | https://github.com/s-yata/marisa-trie
- Ubuntu apt - libmarisa-perl - 0.2.6-14ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: libmarisa-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Perl bindings for MARISA | https://github.com/s-yata/marisa-trie
- Ubuntu apt - libmarisa0 - 0.2.6-14ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: libmarisa0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | C++ library to provide an implementation of MARISA | https://github.com/s-yata/marisa-trie
- Ubuntu apt - marisa - 0.2.6-14ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: marisa from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command line tools for libmarisa | https://github.com/s-yata/marisa-trie
- Ubuntu apt - python3-marisa - 0.2.6-14ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-marisa from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python3 bindings for MARISA | https://github.com/s-yata/marisa-trie
- Ubuntu apt - ruby-marisa - 0.2.6-14ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: ruby-marisa from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Ruby bindings for MARISA | https://github.com/s-yata/marisa-trie
- dnf - marisa - 0.3.0-12.fc45: normalized package name match | Fedora Rawhide package metadata: marisa from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Static and spece-efficient trie data structure library | https://github.com/s-yata/marisa-trie
- dnf - marisa-devel - 0.3.0-12.fc45: normalized package name match | Fedora Rawhide package metadata: marisa-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for marisa | https://github.com/s-yata/marisa-trie
- dnf - marisa-perl - 0.3.0-12.fc45: normalized package name match | Fedora Rawhide package metadata: marisa-perl from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Perl language binding for marisa | https://github.com/s-yata/marisa-trie


## 相关链接

- [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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [opencc](https://pkg.so/zh-hans/brew/opencc/) - Popular package that depends on this formula.
- [librime](https://pkg.so/zh-hans/brew/librime/) - Popular package that depends on this formula.
- [libdatrie](https://pkg.so/zh-hans/brew/libdatrie/) - Shares pkgdb curated category or tags: cli, developer-tools, libraries, library, trie.
- [pango](https://pkg.so/zh-hans/brew/pango/) - Shares pkgdb curated category or tags: cli, developer-tools, libraries, library.
- [libdeflate](https://pkg.so/zh-hans/brew/libdeflate/) - Shares pkgdb curated category or tags: cli, developer-tools, libraries, library.
- [nspr](https://pkg.so/zh-hans/brew/nspr/) - Shares pkgdb curated category or tags: cli, developer-tools, libraries, library.
- [json-glib](https://pkg.so/zh-hans/brew/json-glib/) - Shares pkgdb curated category or tags: cli, developer-tools, libraries, library.
- [protobuf-c](https://pkg.so/zh-hans/brew/protobuf-c/) - Shares pkgdb curated category or tags: cli, developer-tools, libraries, library.
- [ossp-uuid](https://pkg.so/zh-hans/brew/ossp-uuid/) - Shares pkgdb curated category or tags: cli, developer-tools, libraries, library.
- [pymupdf](https://pkg.so/zh-hans/brew/pymupdf/) - Shares pkgdb curated category or tags: cli, developer-tools, libraries, library.
- [cctz](https://pkg.so/zh-hans/brew/cctz/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, libraries, library.
- [ctemplate](https://pkg.so/zh-hans/brew/ctemplate/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, libraries, library.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
