# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 0.3.1
- **来源摘要:** Matching Algorithm with Recursively Implemented StorAge
- **主页:** <https://github.com/s-yata/marisa-trie>
- **仓库:** <https://github.com/s-yata/marisa-trie>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Perl language binding for marisa | https://github.com/s-yata/marisa-trie


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
