# foma mit Homebrew, apk, apt, dnf, Nix, zypper installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für foma in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:foma
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install foma
```

  Evidenz: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add foma
```

  Evidenz: Alpine Linux edge package indexes: foma from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install foma
```

  Evidenz: Debian stable package indexes: foma from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install foma
```

  Evidenz: Fedora Rawhide package metadata: foma 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#foma
```

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

- zypper (92%):

```sh
sudo zypper install foma
```

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

## Paketfakten

- **Paketschlüssel:** brew:foma
- **Paketmanager:** Homebrew
- **Version:** 0.10.0
- **Quellzusammenfassung:** Finite-state compiler and C library
- **Homepage:** <https://github.com/mhulden/foma>
- **Repository:** <https://github.com/mhulden/foma>
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- cgflookup (Alias)
- flookup (Alias)
- foma (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 0.10.0
## Projektgeschichte und Nutzung

foma is a finite-state compiler, programming language, command-line toolset, and C library for constructing finite-state automata and transducers, especially for natural language processing tasks such as morphological analysis.

### Projektgeschichte

The project was originally hosted on Google Code as `code.google.com/p/foma`, where its archive describes it as a finite-state compiler and C library. The archived project page records a 2015 Apache 2.0 license change and a 0.9.18 release, and the current GitHub repository identifies itself as an export from that Google Code project.

foma deliberately followed the Xerox xfst style: the archived project description says its interface is similar to xfst and that many xfst grammars compile without changes. This made it useful to linguists and NLP engineers who wanted an open implementation of familiar finite-state workflows.

### Adoptionsgeschichte

The Google Code archive advertised pre-built binaries for Windows, Linux, and OS X and linked tutorial material from LREC 2010 and FSMNLP 2012, showing use in academic finite-state morphology and spelling-correction communities before the project moved fully to modern source hosting.

The current repository is lean but still maintained as buildable source, with CMake instructions and a WebAssembly build path that exposes a browser demo for testing foma regular expressions.

### Wie es verwendet wird

Users run `foma` to compile finite-state descriptions, use `flookup` to apply compiled automata with lookup strategies, and link against the C API when finite-state operations need to be embedded in other tools.

### Warum Paket-Nerds sich dafür interessieren

foma matters to package maintainers because it is a compact, mostly C-based implementation of a specialized NLP workflow that otherwise often depends on proprietary or research-only tooling. Its xfst compatibility, lexc-oriented usage, command-line utilities, and C library make it a small but culturally important finite-state package.

### Zeitleiste

- 2009: The foma project citation describes `Foma: a finite-state compiler and library`.
- 2011: The Google Code archive records creation of the `foma` project.
- 2015: The archived project news records foma 0.9.18 and a license change to Apache 2.0.
- 2020s: The GitHub README documents CMake builds and a WebAssembly demo for browser-based regular-expression testing.

### Related projects

- The project explicitly relates itself to Xerox xfst and lexc syntax, and supports import and export with Xerox, AT&T, and OpenFST-style tooling.

### Quellen

- <https://github.com/mhulden/foma>
- <https://raw.githubusercontent.com/mhulden/foma/master/README.md>
- <https://storage.googleapis.com/google-code-archive/v2/code.google.com/foma/project.json>


## Sicherheitshinweise

library-like package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- library-like package without higher-risk signals

## Andere Paketmanager-Einträge

- Debian apt - foma - 1:0.10.0+s311.20240712-1: normalized package name match | Debian stable package indexes: foma from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tools for constructing various finite-state automata | https://fomafst.github.io/
- Debian apt - libfoma-dev - 1:0.10.0+s311.20240712-1: normalized package name match | Debian stable package indexes: libfoma-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Foma development files | https://fomafst.github.io/
- Debian apt - libfoma0t64 - 1:0.10.0+s311.20240712-1: normalized package name match | Debian stable package indexes: libfoma0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Foma runtime libraries | https://fomafst.github.io/
- Nix - foma: normalized package name match | nixpkgs package indexes: pkgs/by-name/fo/foma/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - foma - 1:0.10.0+s311-1.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: foma from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tools for constructing various finite-state automata | https://fomafst.github.io/
- Ubuntu apt - foma-bin - 1:0.10.0+s311-1.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: foma-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Transitional package for foma | https://fomafst.github.io/
- Ubuntu apt - libfoma-dev - 1:0.10.0+s311-1.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libfoma-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Foma development files | https://fomafst.github.io/
- Ubuntu apt - libfoma0-dev - 1:0.10.0+s311-1.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libfoma0-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Transitional package for libfoma-dev | https://fomafst.github.io/
- Ubuntu apt - libfoma0t64 - 1:0.10.0+s311-1.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libfoma0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Foma runtime libraries | https://fomafst.github.io/
- apk - foma - 0.10.0_git20240712-r0: normalized package name match | Alpine Linux edge package indexes: foma from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Finite-state compiler and C library | https://fomafst.github.io/
- apk - foma-dev - 0.10.0_git20240712-r0: normalized package name match | Alpine Linux edge package indexes: foma-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Finite-state compiler and C library (development files) | https://fomafst.github.io/
- apk - libfoma - 0.10.0_git20240712-r0: normalized package name match | Alpine Linux edge package indexes: libfoma from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Finite-state compiler and C library (libraries) | https://fomafst.github.io/
- dnf - foma - 0.10.0-0.16.20210601gitdfe1ccb.fc45: normalized package name match | Fedora Rawhide package metadata: foma from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Xerox-compatible finite-state compiler | https://github.com/mhulden/foma
- dnf - libfoma - 0.10.0-0.16.20210601gitdfe1ccb.fc45: normalized package name match | Fedora Rawhide package metadata: libfoma from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The foma C library | https://github.com/mhulden/foma
- dnf - libfoma-devel - 0.10.0-0.16.20210601gitdfe1ccb.fc45: normalized package name match | Fedora Rawhide package metadata: libfoma-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for libfoma | https://github.com/mhulden/foma
- zypper - foma - 0.10.0+git22-1.8: normalized package name match | openSUSE Tumbleweed package metadata: foma from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Finite-state compiler and C library | https://fomafst.github.io/


## Combined YAML source

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


## Quellen

- 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
