# 使用 Homebrew, Nix, pacman, apt 安装 opensearch

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

## 安装

```sh
sudo av install brew:opensearch
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install opensearch
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#opensearch
```

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

- pacman (92%):

```sh
sudo pacman -S opensearch
```

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

- Ubuntu apt (92%):

```sh
sudo apt install libopensearch-java
```

  证据: Ubuntu 24.04 LTS package indexes: libopensearch-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## 软件包事实

- **软件包键:** brew:opensearch
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/opensearch>
- **版本:** 3.7.0
- **来源摘要:** Open source distributed and RESTful search engine
- **主页:** <https://github.com/opensearch-project/OpenSearch>
- **仓库:** <https://github.com/opensearch-project/OpenSearch>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/opensearch-project/OpenSearch.git>
- **最后更新:** 2026-08-02T23:29:46Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- opensearch (cli)
- opensearch-keystore (cli)
- opensearch-plugin (cli)
- opensearch-shard (cli)
- opensearch (别名)
- opensearch-keystore (别名)
- opensearch-plugin (别名)
- opensearch-shard (别名)

## 依赖

- openjdk@25

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: Data: $HOMEBREW_PREFIX/var/lib/opensearch/ Logs: $HOMEBREW_PREFIX/var/log/opensearch/opensearch_homebrew.log Plugins: $HOMEBREW_PREFIX/var/opensearch/plugins/ Config: $HOMEBREW_PREFIX/etc/opensearch/
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.7.0
- 管理器更新时间: 2026-08-02
- 本地数据: OK
- 上游仓库: https://github.com/opensearch-project/OpenSearch
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

OpenSearch is an Apache-2.0 distributed search and analytics engine based on Apache Lucene. It indexes and queries text, logs, metrics, traces, vectors, and operational data, and it forms the engine side of the OpenSearch suite together with OpenSearch Dashboards.

### 项目历史

AWS announced OpenSearch in April 2021 as a community-driven open source fork of Elasticsearch and Kibana, derived from Elasticsearch 7.10.2 and Kibana 7.10.2. The project also became the home for features from Open Distro for Elasticsearch, including security, alerting, machine learning, SQL, index state management, and related functionality.

The public fork work began before announcement. OpenSearch maintainers said they started preparing the codebase for public release on January 21, 2021, migrated 7.10 branch history for attribution, and removed code incompatible with Apache License 2.0.

OpenSearch 1.0 reached general availability in July 2021 as the first production-ready release. In September 2024, AWS transferred OpenSearch into the OpenSearch Software Foundation under the Linux Foundation, a governance change intended to support vendor-neutral collaboration around search, analytics, observability, and vector database software.

### 采用历史

OpenSearch attracted early public support from organizations that depended on Apache-licensed Elasticsearch-compatible software, including Red Hat, SAP, Capital One, and Logz.io in the launch announcement. The project later gained a Linux Foundation home with premier members including AWS, SAP, and Uber.

Managed service adoption is an important part of the project's footprint. Amazon OpenSearch Service provides hosted OpenSearch clusters and supports OpenSearch plus legacy Elasticsearch OSS up to 7.10, making the open source package and the cloud service part of the same migration story for many operators.

### 使用方式

Developers and operators run OpenSearch clusters for full-text search, log analytics, observability, security analytics, application search, and vector or hybrid retrieval workloads. The official getting-started documentation describes OpenSearch as a distributed search and analytics engine based on Apache Lucene, with fielded search, multi-index search, scoring, sorting, and aggregations.

The Homebrew package exposes the server plus administrative helpers such as `opensearch-plugin`, `opensearch-keystore`, and `opensearch-shard`. In practice that means a local package install can run a development node, test plugins, manage secure settings, or inspect shard-level data without a full managed service.

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

OpenSearch is package-nerd catnip because it is a fork where packaging, licensing, compatibility, and ecosystem governance are inseparable. The formula ships a JVM search server, plugin interface, config tree, and operational commands whose version must align with Dashboards and client libraries.

Its upgrade paths from Elasticsearch OSS and Open Distro make it a live example of package lineage: one dependency graph, one API surface, and one file-format ecosystem had to be carried across a fork while preserving operator trust.

### 时间线

- 2021-01-21: Maintainers began preparing the OpenSearch and Dashboards forks for public release.
- 2021-04-12: AWS announced OpenSearch as a fork of Elasticsearch and Kibana.
- 2021-07-12: OpenSearch 1.0 reached general availability.
- 2024-09-16: The OpenSearch Software Foundation launched under the Linux Foundation and OpenSearch moved to that foundation.

### Related projects

- OpenSearch is paired with OpenSearch Dashboards and descends from Elasticsearch OSS. Related OpenSearch ecosystem projects include OpenSearch plugins, Data Prepper, client libraries, and managed services such as Amazon OpenSearch Service.

### 来源

- <https://aws.amazon.com/blogs/opensource/introducing-opensearch/>
- <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html>
- <https://docs.opensearch.org/latest/getting-started/>
- <https://formulae.brew.sh/formula/opensearch>
- <https://forum.opensearch.org/t/preparing-opensearch-and-opensearch-dashboards-for-release/5567>
- <https://github.com/opensearch-project/OpenSearch>
- <https://opensearch.org/about/>
- <https://opensearch.org/blog/opensearch-general-availability-announcement/>
- <https://opensearch.org/faq/>
- <https://www.linuxfoundation.org/press/linux-foundation-announces-opensearch-software-foundation-to-foster-open-collaboration-in-search-and-analytics>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: /etc/opensearch/opensearch.yml
- Unix: /usr/share/opensearch/config/opensearch.yml, /path/to/opensearch-3.7.0/config/opensearch.yml
## 源数据库详情

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

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

- Nix - opensearch: normalized package name match | nixpkgs package indexes: pkgs/by-name/op/opensearch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libopensearch-java - 2.4.1+dfsg-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libopensearch-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | text search engine library | https://www.opensearch.org
- pacman - opensearch - 3.7.0-1: normalized package name match | Arch Linux sync databases: opensearch from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Open source distributed and RESTful search engine | https://docs.opensearch.org/latest/about/


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [openjdk@25](https://pkg.so/zh-hans/brew/openjdk-25/) - Runtime dependency declared by Homebrew.
- [meilisearch](https://pkg.so/zh-hans/brew/meilisearch/) - Shares pkgdb curated category or tags: cli, data, rest-api, search, search-engine.
- [manticoresearch](https://pkg.so/zh-hans/brew/manticoresearch/) - Shares pkgdb curated category or tags: cli, data, search, search-engine.
- [opensearch-dashboards](https://pkg.so/zh-hans/brew/opensearch-dashboards/) - Shares pkgdb curated category or tags: analytics, cli, data, search.
- [omega](https://pkg.so/zh-hans/brew/omega/) - Shares pkgdb curated category or tags: cli, data, search, search-engine.
- [pgroonga](https://pkg.so/zh-hans/brew/pgroonga/) - Shares pkgdb curated category or tags: cli, data, search.
- [ngt](https://pkg.so/zh-hans/brew/ngt/) - Shares pkgdb curated category or tags: cli, data, search.
- [apache-arrow](https://pkg.so/zh-hans/brew/apache-arrow/) - Shares pkgdb curated category or tags: analytics, cli, data.
- [duckdb](https://pkg.so/zh-hans/brew/duckdb/) - Shares pkgdb curated category or tags: analytics, cli, data.
- [libpostal-rest](https://pkg.so/zh-hans/brew/libpostal-rest/) - Local package facts share a topical domain. Shared terms: api, cli, data, rest, rest-api.

## Combined YAML source

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


## 来源

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