# 使用 Homebrew, apk, Nix 安装 neo4j

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

## 安装

```sh
sudo av install brew:neo4j
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install neo4j
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add neo4j
```

  证据: Alpine Linux edge package indexes: neo4j from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#neo4j
```

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

## 软件包事实

- **软件包键:** brew:neo4j
- **软件包管理器:** Homebrew
- **版本:** 2026.06.0
- **来源摘要:** Robust (fully ACID) transactional property graph database
- **主页:** <https://neo4j.com/>
- **最后更新:** 2026-07-08T13:37:26Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- neo4j (别名)
- neo4j-admin (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2026.06.0
## 项目历史与用法

Neo4j is a transactional property graph database centered on nodes, relationships, properties, and the Cypher query language. The Homebrew package installs the self-managed Community Edition tooling, including the neo4j and neo4j-admin executables, and defines a Homebrew service that runs neo4j console from the package prefix.

### 项目历史

Neo4j's official open-source history says development began in 2000 while the founders were building a content management system and needed a relationship-first data model that relational databases did not handle well. The same timeline says the property graph model was invented in 2000, a graph database entered 24/7 production in 2003, and Neo4j 1.0 shipped in 2007 as open-source and commercial packages.

### 采用历史

Neo4j helped define the graph database category for package managers and application developers. Neo4j's milestone list connects the project to the NoSQL wave in 2009, Cypher in 2011, the O'Reilly Graph Databases book and GraphConnect conferences in 2012, labeled property graphs in Neo4j 2.0 in 2013, openCypher in 2015, and Bolt/native drivers in Neo4j 3.0 in 2016.

### 使用方式

Package users tend to install Neo4j locally for development, demos, integration tests, graph modeling, and Cypher experimentation before moving to a managed Aura instance or a production self-managed deployment. Homebrew's formula depends on cypher-shell and OpenJDK 21, exposes neo4j and neo4j-admin, and wires a service for launching the database under the Homebrew var directories.

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

For package history, Neo4j is the major graph database in this batch: a long-lived Java server, a query-language ecosystem, dedicated CLI/admin tools, and many downstream integrations. The Homebrew formula API snapshot generated on 2026-06-30 reported 12,248 installs over 365 days and 720 installs over 30 days, far above the smaller neighboring packages in this batch.

### 时间线

- 2000: Neo4j development begins and the property graph model is invented, according to Neo4j.
- 2003: First graph database in 24/7 production, according to Neo4j.
- 2007: Neo4j 1.0 released as open-source and commercial packages.
- 2011: Cypher launched.
- 2015: openCypher standards project launched.
- 2016: Neo4j 3.0 added APOC procedures, Bolt, native drivers, and a cost-based optimizer.
- 2026-06-30: Homebrew API snapshot listed stable version 2026.05.0.

### Related projects

- Cypher
- openCypher
- APOC
- Bolt
- cypher-shell
- Neo4j Aura
- Neo4j Graph Data Science

### 来源

- <https://formulae.brew.sh/api/formula/neo4j.json>
- <https://github.com/neo4j/neo4j>
- <https://neo4j.com/docs/getting-started/graph-database/>
- <https://neo4j.com/open-source-project/>


## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- 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: <NEO4J_HOME>/conf/neo4j.conf, <NEO4J_HOME>/conf/neo4j-admin.conf, /etc/neo4j/neo4j.conf, /etc/neo4j/neo4j-admin.conf
- Windows: <NEO4J_HOME>\conf\neo4j.conf, <NEO4J_HOME>\conf\neo4j-admin.conf
## 其他软件包管理器记录

- Nix - neo4j: normalized package name match | nixpkgs package indexes: pkgs/by-name/ne/neo4j/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cypher-shell - 4.4.41-r0: normalized package name match | Alpine Linux edge package indexes: cypher-shell from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Cypher Shell - CLI for Neo4j | https://neo4j.com
- apk - neo4j - 4.4.41-r0: normalized package name match | Alpine Linux edge package indexes: neo4j from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Neo4j Community Edition LTS | https://neo4j.com
- apk - neo4j-doc - 4.4.41-r0: normalized package name match | Alpine Linux edge package indexes: neo4j-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Neo4j Community Edition LTS (documentation) | https://neo4j.com
- apk - neo4j-openrc - 4.4.41-r0: normalized package name match | Alpine Linux edge package indexes: neo4j-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Neo4j Community Edition LTS (OpenRC init scripts) | https://neo4j.com


## Combined YAML source

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


## 来源

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