Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, Nix, zypper 安装 csmith

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install csmith

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add csmith

Alpine Linux edge package indexes · csmith · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install csmith

Debian stable package indexes · csmith · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install csmith

Fedora Rawhide package metadata · csmith · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#csmith

nixpkgs package indexes · pkgs/by-name/cs/csmith/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install csmith

openSUSE Tumbleweed package metadata · csmith · 来源: download.opensuse.org

概览

软件包摘要

Generates random C programs conforming to the C99 standard

命令和别名

  • compiler_test.pl
  • csmith
  • launchn.pl

历史

项目历史与用法

Csmith is a random C program generator designed for compiler testing. It is a package-nerd staple because it turns compiler validation into a repeatable command-line workload that distributions can package and compiler developers can run locally.

项目历史

The official README says Csmith was developed at the University of Utah by Xuejun Yang, Yang Chen, Eric Eide, and John Regehr as part of a compiler-testing research project. It says the project was open sourced in 2009 and is maintained as an open-source project in discretionary time.

采用历史

The project became known through differential testing of C compilers. The README points to the paper Finding and Understanding Bugs in C Compilers as the best summary of the research, and the packaged tool is available across Homebrew and several Linux distributions according to the input package-manager facts.

使用方式

Official usage examples generate a random C file with csmith, compile it with GCC and Clang, run both outputs, and compare results. The README also notes that generated programs avoid undefined behavior and that timeouts are best practice because generated programs can contain infinite loops.

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

Csmith is a compact command-line generator with outsized value for compiler packages: it can be scripted into local compiler checks, regression hunts, and distribution QA without a large service dependency.

时间线

  • 2009: Csmith was open sourced.
  • 2011: The GitHub repository was created.
  • 2026: Homebrew formula metadata lists stable version 2.3.0.

Related projects

  • The README's primary related projects are C compilers such as GCC and Clang, used as differential-testing targets.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
compiler_test.plcli全局可执行文件
csmithcli全局可执行文件
launchn.plcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本2.3.0
管理器更新时间2026-06-19
本地数据OK
上游当前
检测到的最新版本csmith-2.3.0

https://github.com/csmith-project/csmith

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:csmith
版本2.3.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/csmith
主页https://github.com/csmith-project/csmith
仓库https://github.com/csmith-project/csmith
上游文档https://github.com/csmith-project/csmith#readme
许可证BSD-2-Clause
源码归档https://github.com/csmith-project/csmith/archive/refs/tags/csmith-2.3.0.tar.gz
最后更新2026-06-19T12:30:04-07:00
Pulseupdated
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项It is recommended that you set the environment variable 'CSMITH_PATH' to $HOMEBREW_CELLAR/csmith/2.3.0/include/csmith-2.3.0

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecsmith
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

csmith 2.3.0-8

generator of random C programs

https://embed.cs.utah.edu/csmith/

sudo apt install csmith
  • Section: devel
  • Architecture: amd64
  • 4 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Csmith
Debian stable package indexes · deb.debian.org · Debian stable package indexes: csmith from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libcsmith-dev 2.3.0-8

generator of random C programs (development files)

https://embed.cs.utah.edu/csmith/

sudo apt install libcsmith-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: csmith
  • 1 依赖
  • normalized package name match
  • 匹配方式:Csmith
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcsmith-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libcsmith0t64 2.3.0-8

generator of random C programs (runtime library)

https://embed.cs.utah.edu/csmith/

sudo apt install libcsmith0t64
  • Section: libs
  • Architecture: amd64
  • Source Package: csmith
  • 1 提供
  • normalized package name match
  • 匹配方式:Csmith
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcsmith0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

csmith

nix profile install nixpkgs#csmith
  • normalized package name match
  • 匹配方式:Csmith
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/cs/csmith/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

csmith 2.3.0-7.1build1

generator of random C programs

https://embed.cs.utah.edu/csmith/

sudo apt install csmith
  • Section: universe/devel
  • Architecture: amd64
  • 4 依赖
  • normalized package name match
  • 匹配方式:Csmith
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: csmith from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libcsmith-dev 2.3.0-7.1build1

generator of random C programs (development files)

https://embed.cs.utah.edu/csmith/

sudo apt install libcsmith-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: csmith
  • 1 依赖
  • normalized package name match
  • 匹配方式:Csmith
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcsmith-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libcsmith0t64 2.3.0-7.1build1

generator of random C programs (runtime library)

https://embed.cs.utah.edu/csmith/

sudo apt install libcsmith0t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: csmith
  • 1 提供
  • normalized package name match
  • 匹配方式:Csmith
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcsmith0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

csmith 2.3.0-r2

Tool for generating random C programs

https://embed.cs.utah.edu/csmith/

sudo apk add csmith
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: csmith
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Csmith
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: csmith from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

csmith-doc 2.3.0-r2

Tool for generating random C programs (documentation)

https://embed.cs.utah.edu/csmith/

sudo apk add csmith-doc
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: csmith
  • normalized package name match
  • 匹配方式:Csmith
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: csmith-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

csmith 2.4.0-15.fc44

Tool to generate random C programs for compiler testing

http://embed.cs.utah.edu/csmith/

sudo dnf install csmith
  • License: LicenseRef-Callaway-BSD AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
  • Category: Unspecified
  • Architecture: i686
  • Source Package: csmith
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Csmith
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: csmith from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

csmith-devel 2.4.0-15.fc44

Header files and libraries for Csmith development

http://embed.cs.utah.edu/csmith/

sudo dnf install csmith-devel
  • License: LicenseRef-Callaway-BSD AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
  • Category: Unspecified
  • Architecture: i686
  • Source Package: csmith
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Csmith
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: csmith-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

csmith 2.3.0-1.31

Random C code generator

https://github.com/csmith-project/csmith

sudo zypper install csmith
  • License: BSD-3-Clause
  • Category: Development/Tools/Other
  • Architecture: x86_64
  • Source Package: csmith
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Csmith
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: csmith from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment