# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 bam

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

## 安装

```sh
sudo av install brew:bam
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bam
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bam
```

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

### Linux

- apk (92%):

```sh
sudo apk add bam
```

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

- Debian apt (92%):

```sh
sudo apt install bam
```

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

- dnf (92%):

```sh
sudo dnf install bam
```

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

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

- pacman (92%):

```sh
sudo pacman -S bam
```

  证据: Arch Linux sync databases: bam from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install bam
```

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

## 软件包事实

- **软件包键:** brew:bam
- **软件包管理器:** Homebrew
- **版本:** 0.5.1
- **来源摘要:** Build system that uses Lua to describe the build process
- **主页:** <https://matricks.github.io/bam/>
- **仓库:** <https://github.com/matricks/bam>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bam (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

bam is a small C build tool that uses Lua as its build-description language. It belongs to the family of lightweight, scriptable build systems that appeal to package maintainers because the build logic lives in a normal programming language rather than in generated makefiles.

### 项目历史

The public Git history for bam dates to October 2008, and the project documentation describes it as a fast build system with flexible Lua build scripts. The manual copyright line dates the manual to 2010, and the project has remained centered on a single executable that reads a default bam.lua build script.

The 0.5.x line modernized the embedded scripting environment by moving from Lua 5.1 to Lua 5.3.3 and added reproducible-build-oriented changes such as avoiding timestamps in the executable.

### 采用历史

In package-manager terms, bam is a niche but broadly carried build tool: the supplied package facts list packages in Homebrew, Debian/Ubuntu, Fedora, Arch, MacPorts, Nix, Alpine, and openSUSE-style ecosystems. That breadth reflects its occasional role as a build dependency for projects that chose bam over make, CMake, or SCons.

### 使用方式

A bam project normally provides a bam.lua script. The built-in command-line help in the official source sets bam.lua as the default script file and allows another script to be selected with -s.

The README's quick example shows the usual style: create settings, collect source files, compile them, and link the resulting objects using Lua functions exposed by bam.

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

bam is interesting to package maintainers because it is both a build tool and often itself a build-time bootstrap dependency. Its Lua-based model puts it near SCons and Premake culturally, but its small C implementation and zlib license make it simpler to vendor or package than larger build frameworks.

### 时间线

- 2008: Public Git history begins in the official repository.
- 2010: v0.4.0 is tagged and the manual is published with a 2010 copyright line.
- 2016: v0.5.0 upgrades the embedded Lua runtime to 5.3.3 and improves reproducible build behavior.
- 2016: v0.5.1 fixes compiler-environment handling and adds additional platform/compiler support.

### Related projects

- bam is related to other scriptable build tools such as SCons and Premake, and to lower-level build runners such as make and Ninja. Its distinguishing feature is a compact C implementation paired with Lua build descriptions.

### 来源

- <https://github.com/matricks/bam>
- <https://github.com/matricks/bam/blob/master/CHANGELOG>
- <https://github.com/matricks/bam/blob/master/README.md>
- <https://github.com/matricks/bam/commit/68ce71e9273f0527fcb4344eddceacf88d54c1db>
- <https://matricks.github.io/bam/bam.html>
- input.source_facts.package-manager


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation 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: ./bam.lua
## 其他软件包管理器记录

- Debian apt - bam - 0.5.1-3+b1: normalized package name match | Debian stable package indexes: bam from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast and flexible build system | https://matricks.github.com/bam/
- Nix - bam: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bam/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bam - 0.5.1-3: normalized package name match | Ubuntu 24.04 LTS package indexes: bam from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast and flexible build system | https://matricks.github.com/bam/
- apk - bam - 0.5.1-r5: normalized package name match | Alpine Linux edge package indexes: bam from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast and flexible build system using Lua | https://github.com/matricks/bam
- dnf - bam - 0.5.1-21.fc45: normalized package name match | Fedora Rawhide package metadata: bam from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A build-system | http://matricks.github.com/bam/
- pacman - bam - 0.5.1-3: normalized package name match | Arch Linux sync databases: bam from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A fast and flexible build system using Lua | https://github.com/matricks/bam
- zypper - bam - 0.5.1-5.12: normalized package name match | openSUSE Tumbleweed package metadata: bam from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Lua-based build system | https://github.com/matricks/bam
- MacPorts - bam: normalized package name match | MacPorts ports tree: devel/bam/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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