# 使用 Homebrew, apk, chocolatey, MacPorts, Nix, scoop, winget, zypper 安装 flux

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

## 安装

```sh
sudo av install brew:flux
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install flux
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install flux
```

  证据: MacPorts ports tree: sysutils/flux/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add flux
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#flux
```

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

- zypper (92%):

```sh
sudo zypper install libflux-devel
```

  证据: openSUSE Tumbleweed package metadata: libflux-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install flux
```

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

- Scoop (92%):

```sh
scoop install extras/flux
```

  证据: Scoop official bucket manifest trees: bucket/flux.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id FluxCD.Flux -e
```

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

## 软件包事实

- **软件包键:** brew:flux
- **软件包管理器:** Homebrew
- **版本:** 0.200.0
- **来源摘要:** Lightweight scripting language for querying databases
- **主页:** <https://www.influxdata.com/products/flux/>
- **仓库:** <https://github.com/influxdata/flux>
- **最后更新:** 2026-07-25T20:54:34-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- flux (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Flux is InfluxData's open-source functional data scripting language for querying, analyzing, and acting on data, especially time-series data in InfluxDB 1.x and 2.x.

### 项目历史

InfluxData documents Flux as a language that unifies querying, processing, writing, and acting on data in one syntax, with support for time-series databases, SQL databases, and CSV data sources.

The public Flux repository describes it as part of InfluxDB 1.7 and 2.0 while also runnable independently. InfluxData later placed Flux in maintenance mode and did not carry native Flux support into InfluxDB 3.

### 采用历史

Flux adoption was tied to InfluxDB 1.7, InfluxDB 2.x, Flux tasks, dashboards, and the InfluxData documentation ecosystem. Its standard library grew broad support for data transformations, InfluxDB-specific operations, SQL, CSV, Prometheus-style functions, testing helpers, and notification endpoints.

InfluxData's current guidance says existing InfluxDB 1.x and 2.x users can continue using Flux, while new InfluxDB 3 work should generally use InfluxQL or SQL.

### 使用方式

Users write Flux scripts to read from buckets, filter and transform tables, join streams, aggregate windows, define functions, query external data sources, and drive tasks or alerts in InfluxDB-era workflows. The standalone flux command also exposes a REPL-style developer workflow in older releases.

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

Flux is notable to package maintainers because it is both a language runtime and a database-adjacent tool: packaging it means exposing a CLI, stdlib, parser, planner, and runtime outside the InfluxDB server that popularized it.

Its maintenance-mode status matters for curation because the package remains useful for legacy InfluxDB 1.x/2.x users even though InfluxDB 3 moved toward SQL and InfluxQL.

### 时间线

- 2018: Flux v0.7.x releases were published during early language development.
- 2018: Flux v0.14.0 changed the flux command into a REPL and organized built-in code into Flux packages.
- 2019: Flux v0.65.0 was published during the pre-1.0 language series.
- 2020: InfluxDB 2.0-era adoption made Flux central to many InfluxData 2.x workflows.
- 2026: InfluxData documentation states that Flux is in maintenance mode and not supported in InfluxDB 3.

### Related projects

- InfluxDB 1.x, InfluxDB 2.x, InfluxDB 3, InfluxQL, SQL, Telegraf, Chronograf, and Kapacitor are closely related parts of the InfluxData ecosystem.
- Prometheus, SQL databases, and CSV sources are important integration targets documented in the Flux standard library and query-source docs.

### 来源

- <https://docs.influxdata.com/flux/v0/>
- <https://docs.influxdata.com/flux/v0/future-of-flux/>
- <https://docs.influxdata.com/flux/v0/release-notes/>
- <https://github.com/influxdata/flux>


## 安全说明

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

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

- Nix - flux: normalized package name match | nixpkgs package indexes: pkgs/by-name/fl/flux/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - flux - 2.9.0-r1: normalized package name match | Alpine Linux edge package indexes: flux from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open and extensible continuous delivery solution for Kubernetes | https://fluxcd.io/
- apk - flux-bash-completion - 2.9.0-r1: normalized package name match | Alpine Linux edge package indexes: flux-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for flux | https://fluxcd.io/
- apk - flux-fish-completion - 2.9.0-r1: normalized package name match | Alpine Linux edge package indexes: flux-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for flux | https://fluxcd.io/
- apk - flux-zsh-completion - 2.9.0-r1: normalized package name match | Alpine Linux edge package indexes: flux-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for flux | https://fluxcd.io/
- zypper - libflux-devel - 0.199.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libflux-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development libraries and header files for Influx data language | https://github.com/influxdata/flux
- zypper - libflux0_199_0 - 0.199.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libflux0_199_0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Influx data language | https://github.com/influxdata/flux
- MacPorts - flux: normalized package name match | MacPorts ports tree: sysutils/flux/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - flux: normalized package name match | Chocolatey community package catalog: flux from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','firacode'
- Scoop - extras/flux: normalized package name match | Scoop official bucket manifest trees: bucket/flux.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- Scoop - main/flux: normalized package name match | Scoop official bucket manifest trees: bucket/flux.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - FluxCD.Flux: normalized package name match | Windows Package Manager source index: FluxCD.Flux from https://cdn.winget.microsoft.com/cache/source.msix
- winget - flux.flux: normalized package name match | Windows Package Manager source index: flux.flux from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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