# 使用 Homebrew, dnf, MacPorts, Nix 安装 checkmake

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

## 安装

```sh
sudo av install brew:checkmake
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install checkmake
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install checkmake
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install checkmake
```

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

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

## 软件包事实

- **软件包键:** brew:checkmake
- **软件包管理器:** Homebrew
- **版本:** 0.3.2
- **来源摘要:** Linter/analyzer for Makefiles
- **主页:** <https://github.com/checkmake/checkmake>
- **仓库:** <https://github.com/checkmake/checkmake>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- checkmake (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

checkmake is a Go command-line linter for Makefiles. It is a small but package-relevant tool because Makefiles are ubiquitous, and checkmake gives them the kind of static analysis that shell scripts, YAML, and source code often already receive.

### 项目历史

The checkmake/checkmake repository was created in August 2016 and describes the project as a linter and analyzer for Makefiles. The README says it scans one or more Makefiles for potential issues according to configurable rules.

The project was inspired by an idea from Dan Buch, according to the README, and later moved into the checkmake GitHub organization while retaining older badge references to the original mrtazz/checkmake namespace.

### 采用历史

The official README documents installation with Go, prebuilt releases, packages, packagecloud, Homebrew-style package-manager use through batch metadata, and official container images on quay.io. It also provides pre-commit hook configuration for repository-level adoption.

The README notes that checkmake is natively embedded in MegaLinter, which makes it available inside a broader multi-language linting workflow even when users do not install it directly.

### 使用方式

Typical usage is to run checkmake against Makefile, GNUmakefile, or *.mk inputs and receive text or JSON reports. The CLI supports a default checkmake.ini configuration file, listing rules, and custom output templates.

In CI and pre-commit workflows, checkmake is used to catch missing phony declarations and similar Makefile maintainability issues before they are merged.

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

checkmake is package-nerd interesting because it lints one of the oldest build-description formats still found in modern repositories. It is also a tidy example of a Go CLI distributed through source install, binary releases, containers, packagecloud, Homebrew, MacPorts, Nix, and distro packages.

Its presence in pre-commit and MegaLinter shows the common path from standalone command to plumbing inside larger developer-tool aggregators.

### 时间线

- 2016: checkmake/checkmake repository created.
- 2022: 0.2.1 release published on GitHub.
- 2023: 0.2.2 release used in the official pre-commit example.
- 2026: v0.3.x releases published, showing renewed maintenance.

### Related projects

- pre-commit is an adjacent integration surface documented by the project.
- MegaLinter embeds checkmake for Makefile linting, and GNU Make is the input format the tool analyzes.

### 来源

- <https://github.com/checkmake/checkmake>
- <https://github.com/checkmake/checkmake/releases>
- <https://github.com/checkmake/checkmake#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: ./checkmake.ini
- Windows: .\checkmake.ini
## 其他软件包管理器记录

- Nix - checkmake: normalized package name match | nixpkgs package indexes: pkgs/by-name/ch/checkmake/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - checkmake - 0.3.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: checkmake from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Linter/analyzer for Makefiles | https://github.com/checkmake/checkmake
- MacPorts - checkmake: normalized package name match | MacPorts ports tree: devel/checkmake/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/checkmake.yml](https://github.com/mxcl/pkgdb/blob/main/combined/checkmake.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
