AGENT SKILL
nfpm
Use this skill when the user wants to package a binary into deb, rpm, apk, or archlinux packages with nfpm — no distro toolchain required.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- nfpm
- description
- Use this skill when the user wants to package a binary into deb, rpm, apk, or archlinux packages with nfpm — no distro toolchain required.
03 SKILL.md 正文
nfpm Plugin
nfpm builds Linux packages (.deb, .rpm, .apk, .arch, .ipk) from one YAML file.
No dpkg-deb, rpmbuild, or fpm needed — it writes packages in pure Go. Used by
GoReleaser to ship CLI releases.
Commands
Packaging
nfpm config init— Create starternfpm.yamlnfpm pkg build— Build a package (-p deb|rpm|apk -f nfpm.yaml -t out/)nfpm config schema— Print the config JSON schemanfpm _ _— Passthrough
Usage Examples
- "Package my binary as a deb and rpm"
- "Create an nfpm.yaml for this CLI"
- "Build an apk for Alpine"
- "Show the nfpm config schema"
Installation
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
# or: brew install nfpm
Examples
# Minimal config, then build
nfpm init
nfpm package -f nfpm.yaml -p deb -t dist/
# Multiple formats
nfpm package -f nfpm.yaml -p rpm -t dist/
nfpm package -f nfpm.yaml -p apk -t dist/
# Environment-templated config (NFPM_* vars)
nfpm package --config <(envsubst < nfpm.yaml) -p deb -t dist/
Key Features
- One config → deb, rpm, apk, archlinux, ipk, termux.deb
- Supports dependencies, conflicts, pre/post-install scripts, systemd units
- Signs packages (RPM GPG, APK RSA)
- Env-var templating keeps config static in CI
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57