# 使用 Homebrew, pacman, chocolatey 安装 solr

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

## 安装

```sh
sudo av install brew:solr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install solr
```

  证据: local Homebrew formula metadata

### Linux

- pacman (92%):

```sh
sudo pacman -S solr
```

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

### Windows

- Chocolatey (92%):

```sh
choco install Solr
```

  证据: Chocolatey community package catalog: Solr from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','skaffold'

## 软件包事实

- **软件包键:** brew:solr
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/solr>
- **版本:** 10.0.0
- **来源摘要:** Enterprise search platform from the Apache Lucene project
- **主页:** <https://solr.apache.org/>
- **上游文档:** <https://solr.apache.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://www.apache.org/dyn/closer.lua?path=solr/solr/10.0.0/solr-10.0.0.tgz>
- **最后更新:** 2026-07-22T14:54:39+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- solr (cli)
- solr (别名)

## 依赖

- openjdk@21

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 10.0.0
- 管理器更新时间: 2026-07-22
- 本地数据: OK
- 上游仓库: https://solr.apache.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Apache Solr is a long-running open source search server built on Apache Lucene. In package-manager culture it is both a Java server and a command-line tool: installing the package gives operators the `solr` command used to start examples, create collections, post documents, and run local development search nodes.

### 项目历史

The Solr project was established in 2006 as a subproject of Apache Lucene and became a separate Apache top-level project in 2021. Apache release notes show the public 1.x line in 2006-2009, the 3.1 release in 2011, and Solr 4.0 in 2012 with SolrCloud work prominent in the change log.

Modern Solr releases continued to emphasize distributed indexing and search, rich document handling, analytics, geospatial search, and later vector search. Apache's 2026 Solr 10.0.0 announcement describes the current project as a multi-modal search platform built on Lucene with REST APIs, parallel SQL, Kubernetes/Docker integration, and security changes.

### 采用历史

Apache's own release announcements repeatedly describe Solr as powering search and navigation at many large organizations. Homebrew's formula metadata shows Solr packaged as a stable bottled formula for local macOS and Linux use, with hundreds of installs over the trailing year in the formula analytics.

### 使用方式

Typical package-manager usage starts with the `solr` executable: `bin/solr start`, example modes such as `cloud`, `techproducts`, and `schemaless`, and indexing through APIs or the bundled post tool. Operators care about the package because Solr's config files, Java runtime assumptions, service wrappers, and version-specific upgrade notes directly affect local development and production search clusters.

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

Solr is a classic package-manager stress test: a CLI launcher around a large Java server, mutable per-core configuration, long-lived version pins, and compatibility-sensitive data/index formats. Formulae such as `solr` and `solr@8.11` matter because developers often need a specific Solr line to match production clusters or application test suites.

### 时间线

- 2006: Apache Solr established as a subproject of Apache Lucene.
- 2006: Solr 1.1.0 released.
- 2011: Solr 3.1.0 released from the shared Lucene/Solr line.
- 2012: Solr 4.0.0 released with SolrCloud changes prominent in the release notes.
- 2021: Apache Solr established as a separate top-level project.
- 2026: Apache Solr 10.0.0 released.

### Related projects

- Apache Lucene provides Solr's search library foundation.
- Apache ZooKeeper is central to SolrCloud coordination.
- Apache Tika, Apache ManifoldCF, Apache Spark, Apache Nutch, Apache Zeppelin, and Apache OpenNLP are listed by Solr as related projects.

### 来源

- <https://archive.apache.org/dist/lucene/solr/4.5.1/changes/Changes.html>
- <https://formulae.brew.sh/api/formula/solr.json>
- <https://github.com/apache/solr>
- <https://solr.apache.org/news.html>
- <https://solr.apache.org/whoweare.html>


## 安全说明

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

- Unix: $SOLR_HOME/solr.xml, <core-or-collection>/conf/solrconfig.xml, <core-or-collection>/conf/managed-schema.xml, <core-or-collection>/conf/schema.xml
## 源数据库详情

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

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

- pacman - solr - 10.0.0-1: normalized package name match | Arch Linux sync databases: solr from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Open source enterprise search platform built on Apache Lucene | https://lucene.apache.org/solr/
- Chocolatey - Solr: normalized package name match | Chocolatey community package catalog: Solr from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','skaffold'


## 相关链接

- [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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk@21](https://pkg.so/zh-hans/brew/openjdk-21/) - Runtime dependency declared by Homebrew.
- [solr@8.11](https://pkg.so/zh-hans/brew/solr-8-11/) - Package name indicates the same formula family.
- [sonic](https://pkg.so/zh-hans/brew/sonic/) - Shares pkgdb curated category or tags: cli, data, indexing, search, server.
- [metabase](https://pkg.so/zh-hans/brew/metabase/) - Shares pkgdb curated category or tags: analytics, cli, data, server.
- [opensearch-dashboards](https://pkg.so/zh-hans/brew/opensearch-dashboards/) - Shares pkgdb curated category or tags: analytics, cli, data, search.
- [arcadedb](https://pkg.so/zh-hans/brew/arcadedb/) - Shares pkgdb curated category or tags: cli, data, search, server.
- [zebra](https://pkg.so/zh-hans/brew/zebra/) - Shares pkgdb curated category or tags: cli, data, indexing, search.
- [redis](https://pkg.so/zh-hans/brew/redis/) - Shares pkgdb curated category or tags: cli, data, server.
- [mysql](https://pkg.so/zh-hans/brew/mysql/) - Shares pkgdb curated category or tags: cli, data, server.
- [apache-spark](https://pkg.so/zh-hans/brew/apache-spark/) - Local package facts share a topical domain. Shared terms: analytics, apache, cli, data, openjdk.
- [pinot](https://pkg.so/zh-hans/brew/pinot/) - Local package facts share a topical domain. Shared terms: analytics, apache, cli, data, openjdk.

## Combined YAML source

View the package source record on GitHub. [combined/solr.yml](https://github.com/mxcl/pkgdb/blob/main/combined/solr.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
