# 使用 Homebrew, Nix, scoop 安装 localstack

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

## 安装

```sh
sudo av install brew:localstack
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install localstack
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#localstack
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/localstack
```

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

## 软件包事实

- **软件包键:** brew:localstack
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/localstack>
- **版本:** 2026.3.0
- **来源摘要:** Fully functional local AWS cloud stack
- **主页:** <https://localstack.cloud/>
- **上游文档:** <https://localstack.cloud/>
- **许可证:** Apache-2.0
- **源码归档:** <https://files.pythonhosted.org/packages/a2/16/8231e7b97a3e0c5187754b65be2d7a6c550dea6d71a00318068e95953560/localstack-2026.3.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- localstack (cli)
- localstack (别名)

## 依赖

- certifi
- cryptography
- libyaml
- openssl@3
- python@3.14

## 构建依赖

- pkgconf
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2026.3.0
- 本地数据: OK
- 上游仓库: https://localstack.cloud/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

LocalStack is an open source local cloud emulator and CLI-oriented developer tool for building and testing AWS applications without connecting to live AWS services. It matters in package-manager culture because it turns a large cloud dependency into a locally installable command and container workflow.

### 项目历史

The LocalStack project presents itself as a cloud software development framework for developing and testing AWS applications locally. Its GitHub README describes the runtime as a cloud service emulator that runs in a single container on a laptop or in CI, with support for services such as Lambda, S3, DynamoDB, Kinesis, SQS, and SNS.

The package distributed by Homebrew installs the LocalStack CLI, which the official documentation describes as the tool for starting, managing, and configuring the LocalStack container. This made the project fit naturally into Python, Docker, and Homebrew-driven development setups.

### 采用历史

LocalStack's adoption grew around the need to test cloud applications, infrastructure-as-code templates, and serverless workflows locally. Official documentation highlights use cases including CDK, Terraform, Lambda, and CI workflows, making it a common dependency in developer machines and continuous-integration jobs.

By 2026, LocalStack's release and packaging story had shifted toward the unified LocalStack for AWS image, auth tokens, and calendar versioning. The project's own 2026.03.0 release announcement documents the move from semantic versioning to monthly calendar versions.

### 使用方式

Typical package-manager usage is to install the CLI, ensure Docker is available, run `localstack start`, and point AWS tools or SDKs at the local endpoint. Configuration is primarily environment-variable driven, with the CLI also using `~/.localstack` as its configuration directory.

Modern LocalStack for AWS usage may require a `LOCALSTACK_AUTH_TOKEN` supplied through `localstack auth set-token`, the environment, Docker, Docker Compose, or CI secrets. The official auth-token documentation treats the token as confidential and does not document a portable credentials file path.

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

LocalStack is a notable package because it packages a broad cloud-service compatibility layer into a local CLI/container workflow. It sits at the intersection of Homebrew, PyPI, Docker images, AWS SDK testing, and infrastructure-as-code tooling.

For maintainers, LocalStack is interesting because small version and image-policy changes can affect many downstream test suites. Pinning, auth-token handling, Docker availability, and service coverage are all part of the package-management story.

### 时间线

- 2016: LocalStack repository history begins with public source development on GitHub.
- 2020: LocalStack 1.0-era packaging and service coverage made it a common local AWS emulator in developer workflows.
- 2023: LocalStack v2/v3 release planning and cleanup moved the project through major-version transitions.
- 2026: LocalStack for AWS 2026.03.0 moved product releases to calendar versioning and documented the unified image/auth-token direction.

### Related projects

- awslocal provides an AWS CLI wrapper for LocalStack endpoints.
- Testcontainers LocalStack modules use LocalStack images for integration tests.
- Moto, MinIO, and individual AWS service emulators overlap with narrower parts of LocalStack's local-cloud testing role.

### 来源

- <https://blog.localstack.cloud/localstack-for-aws-release-2026-03-0/>
- <https://docs.localstack.cloud/aws/configuration/config/configuration/>
- <https://docs.localstack.cloud/aws/developer-tools/running-localstack/localstack-cli/>
- <https://docs.localstack.cloud/aws/getting-started/auth-token/>
- <https://github.com/localstack/localstack>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- 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

- Unix: ~/.localstack/*.env

## Credential files

- Unix: ~/.localstack/*.env
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** localstack
- **Version Scheme:** 0
- **Revision:** 2
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - localstack: normalized package name match | nixpkgs package indexes: pkgs/by-name/lo/localstack/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/localstack: normalized package name match | Scoop official bucket manifest trees: bucket/localstack.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [terraform-local](https://pkg.so/zh-hans/brew/terraform-local/) - Shares the same upstream homepage.
- [moto](https://pkg.so/zh-hans/brew/moto/) - Shares pkgdb curated category or tags: aws, cli, cloud, developer-tools, testing.
- [docker-credential-helper-ecr](https://pkg.so/zh-hans/brew/docker-credential-helper-ecr/) - Shares pkgdb curated category or tags: aws, cli, cloud, developer-tools.
- [fake-gcs-server](https://pkg.so/zh-hans/brew/fake-gcs-server/) - Shares pkgdb curated category or tags: cli, cloud, developer-tools, testing.
- [mongodb-atlas-cli](https://pkg.so/zh-hans/brew/mongodb-atlas-cli/) - Shares pkgdb curated category or tags: cli, cloud, developer-tools.
- [morpheus](https://pkg.so/zh-hans/brew/morpheus/) - Shares pkgdb curated category or tags: cli, developer-tools, local-development, testing.
- [docker-machine-driver-vultr](https://pkg.so/zh-hans/brew/docker-machine-driver-vultr/) - Shares pkgdb curated category or tags: cli, cloud, developer-tools.
- [lcov](https://pkg.so/zh-hans/brew/lcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [bats-core](https://pkg.so/zh-hans/brew/bats-core/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [awscli-local](https://pkg.so/zh-hans/brew/awscli-local/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, development, local.
- [molecule](https://pkg.so/zh-hans/brew/molecule/) - Both packages touch the same language runtime or ecosystem. Shared terms: certifi, cli, cryptography, developer, developer-tools.

## Combined YAML source

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


## 来源

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