# Install sentencepiece

Unsupervised text tokenizer and detokenizer. Version 0.2.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:sentencepiece
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sentencepiece
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sentencepiece
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install libsentencepiece-dev
```

  Evidence: Debian stable package indexes: libsentencepiece-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install python3-sentencepiece
```

  Evidence: Fedora Rawhide package metadata: python3-sentencepiece from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#sentencepiece
```

  Evidence: nixpkgs package indexes: pkgs/by-name/se/sentencepiece/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package Facts

- **Package key:** brew:sentencepiece
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/sentencepiece>
- **Version:** 0.2.1
- **Source summary:** Unsupervised text tokenizer and detokenizer
- **Homepage:** <https://github.com/google/sentencepiece>
- **Repository:** <https://github.com/google/sentencepiece>
- **Upstream docs:** <https://github.com/google/sentencepiece#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/google/sentencepiece/archive/refs/tags/v0.2.1.tar.gz>
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- spm_decode (cli)
- spm_encode (cli)
- spm_export_vocab (cli)
- spm_normalize (cli)
- spm_train (cli)
- spm_decode (alias)
- spm_encode (alias)
- spm_export_vocab (alias)
- spm_normalize (alias)
- spm_train (alias)

## Build Dependencies

- cmake

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 0.2.1
- Local data status: ok
- Upstream repository: https://github.com/google/sentencepiece
- Upstream latest detected: v0.2.1 (current)
- info: No package-manager update timestamp was available.

## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sentencepiece
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - libsentencepiece-dev - 0.2.0-1+b3: normalized package name match | Debian stable package indexes: libsentencepiece-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Header files of SentencePiece | https://github.com/google/sentencepiece
- Debian apt - libsentencepiece0 - 0.2.0-1+b3: normalized package name match | Debian stable package indexes: libsentencepiece0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library files of SentencePiece | https://github.com/google/sentencepiece
- Debian apt - python3-sentencepiece - 0.2.0-1+b3: normalized package name match | Debian stable package indexes: python3-sentencepiece from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SentencePiece binding for Python3 | https://github.com/google/sentencepiece
- Debian apt - sentencepiece - 0.2.0-1+b3: normalized package name match | Debian stable package indexes: sentencepiece from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Unsupervised text tokenizer and detokenizer | https://github.com/google/sentencepiece
- Nix - sentencepiece: normalized package name match | nixpkgs package indexes: pkgs/by-name/se/sentencepiece/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libsentencepiece-dev - 0.2.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libsentencepiece-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Header files of SentencePiece | https://github.com/google/sentencepiece
- Ubuntu apt - libsentencepiece0 - 0.2.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libsentencepiece0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library files of SentencePiece | https://github.com/google/sentencepiece
- Ubuntu apt - python3-sentencepiece - 0.2.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-sentencepiece from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SentencePiece binding for Python3 | https://github.com/google/sentencepiece
- Ubuntu apt - sentencepiece - 0.2.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: sentencepiece from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Unsupervised text tokenizer and detokenizer | https://github.com/google/sentencepiece
- dnf - python3-sentencepiece - 0.2.0-9.fc44: normalized package name match | Fedora Rawhide package metadata: python3-sentencepiece from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst | Python module for SentencePiece | https://github.com/google/sentencepiece
- dnf - sentencepiece-devel - 0.2.0-9.fc44: normalized package name match | Fedora Rawhide package metadata: sentencepiece-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst | Libraries and header files for SentencePiece | https://github.com/google/sentencepiece
- dnf - sentencepiece-libs - 0.2.0-9.fc44: normalized package name match | Fedora Rawhide package metadata: sentencepiece-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst | Runtime libraries for SentencePiece | https://github.com/google/sentencepiece
- dnf - sentencepiece-tools - 0.2.0-9.fc44: normalized package name match | Fedora Rawhide package metadata: sentencepiece-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst | Tools for SentencePiece | https://github.com/google/sentencepiece
- MacPorts - sentencepiece: normalized package name match | MacPorts ports tree: textproc/sentencepiece/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related Links

- [Source-control packages](https://www.automicvault.com/de/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/de/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/de/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/de/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [cmake](https://www.automicvault.com/de/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [mlx-lm](https://www.automicvault.com/de/pkg/brew/mlx-lm/) - Popular package that depends on this formula.
- [mitie](https://www.automicvault.com/de/pkg/brew/mitie/) - Shares av.db curated category or tags: cli, data, machine-learning, natural-language-processing, nlp.
- [stanford-corenlp](https://www.automicvault.com/de/pkg/brew/stanford-corenlp/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp, tokenization.
- [yamcha](https://www.automicvault.com/de/pkg/brew/yamcha/) - Shares av.db curated category or tags: cli, data, machine-learning, natural-language-processing, nlp.
- [mecab](https://www.automicvault.com/de/pkg/brew/mecab/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.
- [mallet](https://www.automicvault.com/de/pkg/brew/mallet/) - Shares av.db curated category or tags: cli, data, machine-learning, natural-language-processing.
- [stanford-parser](https://www.automicvault.com/de/pkg/brew/stanford-parser/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.
- [stanford-ner](https://www.automicvault.com/de/pkg/brew/stanford-ner/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.
- [cabocha](https://www.automicvault.com/de/pkg/brew/cabocha/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.

## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
