# 使用 Homebrew, Nix, apt 安装 triton

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

## 安装

```sh
sudo av install brew:triton
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install triton
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#triton
```

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

- Ubuntu apt (92%):

```sh
sudo apt install python3-triton
```

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

## 软件包事实

- **软件包键:** brew:triton
- **软件包管理器:** Homebrew
- **版本:** 7.18.0
- **来源摘要:** Joyent Triton CLI
- **主页:** <https://www.npmjs.com/package/triton>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- triton (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

The `triton` package is the Node.js command-line client for Triton DataCenter CloudAPI. It belongs to the Joyent/MNX Triton ecosystem, a SmartOS-based cloud management platform formerly known as SmartDataCenter.

### 项目历史

Triton DataCenter presents itself as the successor name for SmartDataCenter and describes the platform as open-source cloud management for container-based, service-oriented infrastructure across one or more data centers. The main Triton README says a deployment runs SmartOS, has management and compute nodes, and exposes APIs, an operator portal, private services, and agents.

The node-triton README places the CLI in that larger system: it is part of the Triton Data Center project and works with CloudAPI for both public and private Triton clouds. It also documents the transition from the older `node-smartdc` tooling, saying `triton` was intended to expand command coverage and eventually replace `node-smartdc` as both API client library and command-line tool.

### 采用历史

The source-backed adoption story is narrower than a general-purpose cloud CLI: it is used by Triton public-cloud users and private-cloud operators who need scripted access to accounts, instances, networks, images, and packages through CloudAPI. Official docs show the CLI managing profiles for different data centers and users, and comparing Triton CLI commands with Docker commands on Triton Elastic Docker Host.

Homebrew and npm distribution matter here because the client is a Node.js-era infrastructure CLI. The README's setup path is `npm install -g triton`, while the Homebrew formula gives macOS and Linux package-manager users a way to install the same cloud tooling without treating it as an application framework dependency.

### 使用方式

The documented workflow starts with Node.js installation and a Triton profile containing the CloudAPI endpoint URL, account login, and SSH key fingerprint. Users then run commands such as `triton profile create`, `triton instance list`, `triton instance create`, `triton ssh`, `triton images`, and `triton packages` to operate cloud resources.

Triton documentation also explains the relationship between Docker API access and CloudAPI/Triton CLI access: Docker commands can manage Docker containers on Triton, while the Triton CLI manages infrastructure containers, hardware VMs, images, networks, packages, and account-level details through CloudAPI.

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

For package nerds, `triton` is a fossil and a useful map at the same time: it captures the Joyent SmartOS/Triton cloud-management world in a package-manager-installed CLI. It is most interesting when tracking old and still-maintained infrastructure clients, Node.js CLIs shipped through multiple packaging systems, and command-line tools tied to a specific cloud platform rather than a broad public-cloud market.

It also illustrates a common packaging pattern for infrastructure tools: official docs center npm because the implementation is Node.js, but Homebrew packages it as a first-class executable for operators who expect `brew install` to populate their CLI toolbox.

### 时间线

- SmartDataCenter era: Triton DataCenter README identifies Triton as formerly SmartDataCenter/SDC.
- node-smartdc era: node-triton README documents `node-smartdc` as the older CloudAPI CLI.
- Triton CLI beta era: node-triton README says `triton` was being expanded to cover CloudAPI commands and eventually replace node-smartdc.
- Current docs: Triton CLI documentation covers profiles, CloudAPI access, instance management, Docker comparison, and data-center workflows.

### Related projects

- Triton DataCenter, SmartDataCenter, SmartOS, CloudAPI, node-smartdc, Triton Elastic Docker Host, Manta

### 来源

- <https://docs.tritondatacenter.com/public-cloud/api/triton-cli>
- <https://docs.tritondatacenter.com/public-cloud/instances/docker/how>
- <https://github.com/TritonDataCenter/node-triton#readme>
- <https://github.com/TritonDataCenter/triton#readme>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: ~/.triton/config.json
- Windows: %APPDATA%/Joyent/Triton/config.json
## 其他软件包管理器记录

- Nix - triton: normalized package name match | nixpkgs package indexes: pkgs/by-name/tr/triton/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - python3-triton - 2.0.0.post1-3ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-triton from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | language and compiler for custom Deep Learning operations | https://github.com/openai/triton/


## Combined YAML source

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