# Install xapian with Homebrew, Nix

C++ search engine library. Version 2.0.0 via Homebrew; verified 2026-06-22. Also installable with nix: nix profile install nixpkgs#xapian.

## Install

```sh
sudo av install brew:xapian
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install xapian
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#xapian
```

  Evidence: nixpkgs package indexes: xapian from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## Package facts

- **Package key:** brew:xapian
- **Package manager:** Homebrew
- **Version:** 2.0.0
- **Source summary:** C++ search engine library
- **Homepage:** <https://xapian.org/>
- **Last updated:** 2026-06-22T14:06:41-07:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- copydatabase (alias)
- simpleexpand (alias)
- simpleindex (alias)
- simplesearch (alias)
- xapian-check (alias)
- xapian-compact (alias)
- xapian-config (alias)
- xapian-delve (alias)
- xapian-metadata (alias)
- xapian-pos (alias)
- xapian-progsrv (alias)
- xapian-quest (alias)
- xapian-replicate (alias)
- xapian-replicate-server (alias)
- xapian-tcpsrv (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.0.0
## Project history and usage

Xapian is an open-source C++ search engine library for adding full-text indexing and search to applications. It provides probabilistic ranking, boolean operators, phrase and proximity search, stemming, spelling correction, synonyms, snippets, facets, and language bindings for many ecosystems.

Unlike a standalone search server first, Xapian is primarily a library and toolkit. Developers embed it into applications, while Omega supplies a packaged indexing and CGI search application built on top of Xapian.

### Project history

Xapian descends from more than 30 years of commercial and academic information-retrieval work. The project is partly derived from Open Muscat, a GPL release from BrightStation PLC that replaced the older proprietary Muscat 3.6 system written largely in BCPL.

Muscat was originally written by Dr. Martin Porter at the University of Cambridge. In 1984 Porter and John Snyder founded Cambridge CD Publishing to commercialize the technology; the company became Muscat Ltd, was acquired by Maid PLC, and later became part of the Dialog Corporation and BrightStation story.

After BrightStation, former employees and Open Muscat community developers continued from the last GPLed version. The project was first called OmSeek, but a naming complaint over similarity to Omsee led the developers to choose the name Xapian.

### Adoption history

Xapian's adoption came from being embeddable, portable, and mature: it exposes search as a programmer library rather than requiring every application to run a separate search service. The project lists bindings for languages including Perl, Python, PHP, Java, Tcl, C#, Ruby, Lua, Erlang, Node.js, and R.

Known users include the University of Cologne library OPAC through OpenBib, Die Zeit search, Debian website and mailing-list search, TheyWorkForYou, WhatDoTheyKnow, Recoll desktop search, Notmuch email search, MoinMoin, Roundup, Doxygen searchable documentation, and Kiwix. Those examples show Xapian's range from web search to mail, desktop, documentation, and offline content.

### How it is used

Developers use Xapian by creating or updating databases of documents, adding terms and values, and querying through the library's query parser and ranking models. The command-line tools in the package support checking, compacting, copying, probing, replicating, and serving Xapian databases.

Omega covers the ready-made website-search use case: omindex or scriptindex creates databases, omega serves searches through CGI, and templates define presentation. Xapian itself covers lower-level application search where callers want control over indexing, weighting, filtering, and query construction.

### Why package nerds care

Xapian is a quietly important package because many users meet it indirectly through search features in mail clients, desktop search, wikis, issue trackers, documentation generators, and web archives. It is the kind of library package that makes a system's search boxes work without being the visible application.

### Timeline

- 1984: Martin Porter and John Snyder found Cambridge CD Publishing around the Muscat technology.
- 1990s: Muscat evolves commercially through Muscat Ltd, Maid PLC, Dialog Corporation, and BrightStation PLC.
- Early 2000s: Developers continue from the GPLed Open Muscat code, initially as OmSeek and then as Xapian.
- 2002-09-20: Xapian 0.5.0 is identified by secondary sources as the first official Xapian release.
- 2026-03-16: Xapian 2.0.0 is released as the current stable branch according to the project homepage.

### Related projects

- Open Muscat is Xapian's direct open-source ancestor.
- Omega is the packaged web and intranet search application supplied by the Xapian project.
- Recoll, Notmuch, MoinMoin, Doxygen, and Kiwix are notable downstream or integrating projects.

### Sources

- <https://en.wikipedia.org/wiki/Xapian>
- <https://xapian.org/>
- <https://xapian.org/docs/omega/overview.html>
- <https://xapian.org/features>
- <https://xapian.org/history>
- <https://xapian.org/users>


## Security Notes

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

## Other Package-Manager Records

- Nix - xapian: normalized package name match | nixpkgs package indexes: xapian from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## Combined YAML source

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


## Sources

- 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
