# 使用 Homebrew, dnf, Nix, apt, winget 安装 nexus

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

## 安装

```sh
sudo av install brew:nexus
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nexus
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install nexus
```

  证据: Fedora Rawhide package metadata: nexus 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#nexus
```

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

- Debian apt (92%):

```sh
sudo apt install libnexus-dev
```

  证据: Debian stable package indexes: libnexus-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

### Windows

- winget (92%):

```sh
winget install --id WinStep.Nexus -e
```

  证据: Windows Package Manager source index: WinStep.Nexus from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:nexus
- **软件包管理器:** Homebrew
- **版本:** 3.94.1-06
- **来源摘要:** Repository manager for binary software components
- **主页:** <https://www.sonatype.com/>
- **仓库:** <https://github.com/sonatype/nexus-public>
- **最后更新:** 2026-07-25T00:35:09Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nexus (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

The Homebrew `nexus` formula packages Sonatype Nexus Repository, a self-hosted binary repository manager. It is used to proxy, host, group, search, and govern artifacts and packages so builds use a local controlled source rather than reaching directly to every upstream registry.

### 项目历史

Nexus grew out of the Maven repository-manager era. Sonatype's own 2008 blog post argued for repository managers around Maven Central caching, build speed, and internal artifact sharing. Sonatype's Maven Central history says Sonatype was founded by Jason Van Zyl and Brian Fox in 2008 and later took over day-to-day Maven Central operations, including support for Nexus instances.

The public GitHub repository is described as the open-source Nexus Repository Core codebase. Its README says Core contains Maven, raw, and APT repository functionality with embedded H2 for small workloads, while the Community Edition binary adds formats such as npm, Docker, NuGet, and PyPI plus PostgreSQL support.

### 采用历史

Nexus is significant well beyond Homebrew's local install numbers because many teams run it as infrastructure rather than as a developer laptop tool. The GitHub mirror showed about 2.6k stars, 732 forks, 179 releases, and 78 contributors when researched. Sonatype's documentation lists repository formats across Maven, npm, Docker, PyPI, NuGet, Conda, Go, Helm, Rust/Cargo, Yum, APT, and others.

Homebrew's API generated on 2025-12-23 reported 628 installs-on-request in the preceding 365 days for the `nexus` formula. That is useful as formula demand, not as total Nexus adoption, because production deployments are often containers, archives, managed infrastructure, or vendor-provided binaries.

### 使用方式

Package nerds install Nexus when they need a local artifact cache, a private release repository, or a single internal endpoint for multiple ecosystems. Typical work includes creating hosted/proxy/group repositories, pointing Maven/npm/Docker/etc. clients at Nexus, controlling cleanup policies and blob stores, backing up the data directory, and treating the service as part of CI/CD infrastructure.

The Homebrew formula installs a runnable `nexus` command and defines a service entry that starts `$HOMEBREW_PREFIX/opt/nexus/bin/nexus start`; the av.db source record correctly tracks the data directory properties and initial admin password file as operationally important paths.

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

Nexus is a package-history anchor because it represents the enterprise repository-manager pattern: cache public registries, publish internal binaries, separate build reproducibility from public-network availability, and attach policy/security workflows to package retrieval.

### 时间线

- 2005: Sonatype's Maven Central history says the name Maven Central was officially coined.
- 2008: Sonatype was founded by Jason Van Zyl and Brian Fox.
- 2008-11-26: Sonatype published a repository-manager argument centered on Nexus and Maven Central usage.
- 2025-12-23: Homebrew formula API generated data for Nexus 3.80.0-06.
- 2026-06-25: GitHub release listing showed release-3.93.2-01 as the latest nexus-public release.

### Related projects

- Maven Central
- OSSRH
- Nexus Repository Core
- Nexus Repository Community Edition
- JFrog Artifactory

### 来源

- <https://formulae.brew.sh/api/formula/nexus.json>
- <https://github.com/sonatype/nexus-public>
- <https://help.sonatype.com/en/sonatype-nexus-repository.html>
- <https://www.sonatype.com/blog/2008/11/nine-reasons-to-use-a-repository-manager-sonatype-nexus>
- <https://www.sonatype.com/blog/the-history-of-maven-central-and-sonatype-a-journey-from-past-to-present>


## 安全说明

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: $data-dir/etc/nexus.properties

## Credential files

- Unix: $data-dir/admin.password
## 其他软件包管理器记录

- Debian apt - libnexus-dev - 4.4.3-7: normalized package name match | Debian stable package indexes: libnexus-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | NeXus scientific data file format - development libraries | http://www.nexusformat.org/
- Debian apt - libnexus-java - 4.4.3-7: normalized package name match | Debian stable package indexes: libnexus-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | NeXus scientific data file format - java libraries | http://www.nexusformat.org/
- Debian apt - libnexus-jni - 4.4.3-7: normalized package name match | Debian stable package indexes: libnexus-jni from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | NeXus scientific data file format - JNI library | http://www.nexusformat.org/
- Debian apt - libnexus1 - 4.4.3-7: normalized package name match | Debian stable package indexes: libnexus1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | NeXus scientific data file format - runtime libraries | http://www.nexusformat.org/
- Debian apt - nexus-tools - 4.4.3-7: normalized package name match | Debian stable package indexes: nexus-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | NeXus scientific data file format - applications | http://www.nexusformat.org/
- Nix - nexus: normalized package name match | nixpkgs package indexes: pkgs/by-name/ne/nexus/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libnexus-dev - 4.4.3-6build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libnexus-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | NeXus scientific data file format - development libraries | http://www.nexusformat.org/
- Ubuntu apt - libnexus-java - 4.4.3-6build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libnexus-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | NeXus scientific data file format - java libraries | http://www.nexusformat.org/
- Ubuntu apt - libnexus-jni - 4.4.3-6build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libnexus-jni from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | NeXus scientific data file format - JNI library | http://www.nexusformat.org/
- Ubuntu apt - libnexus1 - 4.4.3-6build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libnexus1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | NeXus scientific data file format - runtime libraries | http://www.nexusformat.org/
- Ubuntu apt - nexus-tools - 4.4.3-6build3: normalized package name match | Ubuntu 24.04 LTS package indexes: nexus-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | NeXus scientific data file format - applications | http://www.nexusformat.org/
- dnf - nexus - 4.4.3-27.fc45: normalized package name match | Fedora Rawhide package metadata: nexus from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Libraries and tools for the NeXus scientific data file format | http://www.nexusformat.org/
- dnf - nexus-devel - 4.4.3-27.fc45: normalized package name match | Fedora Rawhide package metadata: nexus-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for nexus | http://www.nexusformat.org/
- dnf - nexus-tools - 4.4.3-27.fc45: normalized package name match | Fedora Rawhide package metadata: nexus-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Applications for reading and writing NeXus files. | http://www.nexusformat.org/
- winget - WinStep.Nexus: normalized package name match | Windows Package Manager source index: WinStep.Nexus from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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