# 使用 Homebrew, chocolatey 安装 newrelic-infra-agent

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

## 安装

```sh
sudo av install brew:newrelic-infra-agent
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install newrelic-infra-agent
```

  证据: local Homebrew formula metadata

### Windows

- Chocolatey (92%):

```sh
choco install newrelic-infra
```

  证据: Chocolatey community package catalog: newrelic-infra from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','netfx-4.7.1-devpack'

## 软件包事实

- **软件包键:** brew:newrelic-infra-agent
- **软件包管理器:** Homebrew
- **版本:** 1.78.1
- **来源摘要:** New Relic infrastructure agent
- **主页:** <https://github.com/newrelic/infrastructure-agent>
- **仓库:** <https://github.com/newrelic/infrastructure-agent>
- **最后更新:** 2026-07-22T09:44:55Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- newrelic-infra (别名)
- newrelic-infra-ctl (别名)
- newrelic-infra-service (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

New Relic Infrastructure Agent is the host-side collector for New Relic's infrastructure monitoring product. It collects host inventory and metrics and sends them to the New Relic platform, tying bare metal, virtual machines, cloud hosts, Docker/container runtimes, and operating-system state into New Relic's observability data model.

### 项目历史

New Relic announced New Relic Infrastructure on November 7, 2016, with general availability scheduled for November 16, 2016. The launch pitch centered on dynamic infrastructure: cloud instances, Docker containers, changing host configuration, and the need to correlate configuration changes with health metrics. The open source agent repository is the implementation that makes that product useful on machines.

### 采用历史

Adoption follows New Relic's commercial footprint more than a hobbyist CLI pattern. The agent is packaged for multiple operating systems and is documented for manual installs, containers, and larger fleet-management approaches. Companion configuration-management projects such as New Relic's Chef and Puppet tooling exist because the usual user is operating a fleet, not installing a one-off desktop utility.

Homebrew is a secondary distribution channel for this package, mostly useful for macOS hosts, test machines, and developers who want a bottled agent. Homebrew analytics reported 211 installs in 30 days, 560 in 90 days, and 2,576 in 365 days for the formula when queried on July 1, 2026.

### 使用方式

Package nerds install it when they need a real New Relic host entity: set a New Relic license key/profile configuration, run the service, and let the agent report CPU, memory, disk, process, inventory, container, and integration data. On developer machines it is also useful for checking agent behavior, config-file paths, and packaging changes before rolling the same version across Linux or Windows fleets.

The operational habit is to keep it updated: New Relic's release notes repeatedly tell users to upgrade regularly, and the agent has a fast cadence of dependency, integration, Fluent Bit/logging, security, and platform-support changes.

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

This is not a general-purpose monitoring daemon so much as a packaged endpoint for a vendor ecosystem. Its significance in av.db is that secrets and configuration are concentrated in predictable files such as newrelic-infra.yml, and the installed executables are service/control-plane tools rather than ad hoc user commands.

### 时间线

- 2016-11-07: New Relic announced New Relic Infrastructure.
- 2016-11-16: New Relic Infrastructure general availability was scheduled at launch.
- 2026-07-01: Homebrew formula version observed as 1.77.1, with 2,576 formula installs over the preceding 365-day analytics window.

### Related projects

- newrelic/infrastructure-agent-chef
- newrelic/infrastructure-agent-puppet
- newrelic/nri-docker
- New Relic Infrastructure Monitoring

### 来源

- <https://docs.newrelic.com/docs/infrastructure/choose-infra-install-method/>
- <https://docs.newrelic.com/docs/release-notes/infrastructure-release-notes/infrastructure-agent-release-notes/>
- <https://formulae.brew.sh/api/formula/newrelic-infra-agent.json>
- <https://github.com/newrelic/infrastructure-agent>
- <https://newrelic.com/press-release/20161107-3>


## 安全说明

formula declares a Homebrew service. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service
- infrastructure mutation or orchestration signal


## 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/newrelic-infra.yml
- macOS: /usr/local/etc/newrelic-infra.yml, /opt/homebrew/etc/newrelic-infra.yml

## Credential files

- Linux: /etc/newrelic-infra.yml
- macOS: /usr/local/etc/newrelic-infra.yml, /opt/homebrew/etc/newrelic-infra.yml
## 其他软件包管理器记录

- Chocolatey - newrelic-infra: installed executable or alias match | Chocolatey community package catalog: newrelic-infra from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','netfx-4.7.1-devpack'


## Combined YAML source

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