Automic VaultAutomic Vault

brew

使用 Homebrew, apt, apk, dnf, Nix, pacman 安装 makepkg

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install makepkg

local Homebrew formula metadata

Linux

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

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

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

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

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

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

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

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

Arch Linux pacman已验证 · 92%
sudo pacman -S pacman

Arch Linux sync databases · pacman · 来源: geo.mirror.pkgbuild.com

概览

软件包摘要

Compile and build packages suitable for installation with pacman

命令和别名

  • makepkg
  • makepkg-template
  • pacman
  • pacman-conf
  • pacman-db-upgrade
  • pacman-key
  • repo-add
  • repo-elephant
  • repo-remove
  • testpkg
  • vercmp

历史

项目历史与用法

`makepkg` is Arch Linux's package build script for turning PKGBUILD recipes into pacman-installable packages. It sits in the pacman project alongside libalpm, repo-add, pacman-key, and related utilities, and is the practical center of Arch source packaging culture.

项目历史

The pacman project began with Judd Vinet's early Arch Linux package manager releases in 2002. The official pacman page records a 1.0 release on February 25, 2002, a 2.0 release in August 2002 that introduced sync package databases, and later major versions that grew the toolchain around the simple compressed package format.

The official pacman history calls out version 3.0 as the split between the pacman front end and libalpm, version 4.0 as the point where package signing and verification covered the makepkg, repo-add, and pacman toolchain, version 6.0 for parallel downloads, and version 7.0 for sandboxed downloads. `makepkg` developed with that ecosystem because package building, repository metadata, installation, and verification all have to agree on package formats and metadata.

采用历史

On Arch Linux, `makepkg` became the normal way for users and maintainers to build packages from PKGBUILDs. The man page frames the workflow plainly: once a PKGBUILD exists, `makepkg` downloads and validates sources, checks dependencies, runs the build and packaging functions, installs into a temporary root, writes metadata, and creates a package for pacman.

The Arch User Repository amplified `makepkg`'s role because AUR packages are distributed as build recipes rather than prebuilt binaries. That made PKGBUILD review, local compilation, checksums, source arrays, and `makepkg -si` part of everyday Arch package-manager literacy.

使用方式

Typical usage is to enter a directory containing a PKGBUILD and run `makepkg`, often with flags to install dependencies, clean build files, sign packages, or install the result with pacman. `makepkg.conf` controls compiler flags, build environment options, source download agents, compression, signing, and per-user overrides.

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

`makepkg` matters because it makes the Arch package format legible and reproducible at the shell level. A package recipe is a Bash file, the package database is intentionally simple, and the toolchain exposes enough knobs for distribution maintainers, AUR users, and local rebuilders to reason about exactly what got built.

时间线

  • 2002: pacman 1.0 is released.
  • 2002: pacman 2.0 introduces sync package databases.
  • 2007: pacman 3.0 splits the package manager into libalpm and the pacman front end.
  • 2011: pacman 4.0 adds signing and verification across makepkg, repo-add, and pacman.
  • 2021: pacman 6.0 adds parallel downloads.
  • 2024: pacman 7.0 adds sandboxed download support.

Related projects

  • Related Arch packaging tools include pacman, libalpm, repo-add, repo-remove, makepkg-template, pacman-key, namcap, devtools, and AUR helpers that delegate builds to `makepkg`.

安全态势

风险级别:绿色

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 元数据适用于 6 个平台目标。
  • 安装时包含 5 个运行时依赖。
  • 构建元数据列出 3 个构建依赖。

建议审查

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

local files

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

Config paths the tool may read or write during local use.

Linux
/etc/makepkg.conf/etc/makepkg.conf.d/*.conf$XDG_CONFIG_HOME/pacman/makepkg.conf~/.makepkg.conf

可执行文件

已安装的可执行文件

命令类型暴露范围备注
makepkgcli全局可执行文件
makepkg-templatecli全局可执行文件
pacmancli全局可执行文件
pacman-confcli全局可执行文件
pacman-db-upgradecli全局可执行文件
pacman-keycli全局可执行文件
repo-addcli全局可执行文件
repo-elephantcli全局可执行文件
repo-removecli全局可执行文件
testpkgcli全局可执行文件
vercmpcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-08
管理器版本7.1.0
管理器更新时间2026-06-21
本地数据OK
上游not checked
检测到的最新版本未检测到

https://wiki.archlinux.org/index.php/makepkg

安装元数据

软件包元数据

软件包键brew:makepkg
版本7.1.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/makepkg
主页https://wiki.archlinux.org/index.php/makepkg
仓库https://gitlab.archlinux.org/pacman/pacman
上游文档https://man.archlinux.org/man/makepkg.8
许可证GPL-2.0-or-later
源码归档https://gitlab.archlinux.org/pacman/pacman.git
最后更新2026-06-21T16:34:05-04:00
Pulseupdated
依赖bash, fakeroot, gettext, libarchive, openssl@3
构建依赖meson, ninja, pkgconf
macOS 提供的库libxslt
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemakepkg
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%

makepkg 7.0.0-1+b1

Arch Linux package build utility

https://archlinux.org/pacman/

sudo apt install makepkg
  • Section: admin
  • Architecture: amd64
  • Source Package: pacman-package-manager
  • 8 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Makepkg
Debian stable package indexes · deb.debian.org · Debian stable package indexes: makepkg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

makepkg 6.0.2-6ubuntu2

Arch Linux package build utility

https://archlinux.org/pacman/

sudo apt install makepkg
  • Section: universe/admin
  • Architecture: amd64
  • Source Package: pacman-package-manager
  • 8 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Makepkg
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: makepkg from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Debian apt92%

pacman 10-21

Chase Monsters in a Labyrinth

sudo apt install pacman
  • Section: games
  • Architecture: amd64
  • 3 依赖
  • installed executable or alias match
  • 匹配方式:Pacman
Debian stable package indexes · deb.debian.org · Debian stable package indexes: pacman from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

pacman

nix profile install nixpkgs#pacman
  • installed executable or alias match
  • 匹配方式:Pacman
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pa/pacman/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

pacman 10-19

Chase Monsters in a Labyrinth

sudo apt install pacman
  • Section: universe/games
  • Architecture: amd64
  • 3 依赖
  • installed executable or alias match
  • 匹配方式:Pacman
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: pacman from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk92%

pacman 7.1.0-r2

Simple library-based package manager

https://www.archlinux.org/pacman/

sudo apk add pacman
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: pacman
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Pacman
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pacman from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

pacman-bash-completion 7.1.0-r2

Bash completions for pacman

https://www.archlinux.org/pacman/

sudo apk add pacman-bash-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: pacman
  • installed executable or alias match
  • 匹配方式:Pacman
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pacman-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

pacman-dev 7.1.0-r2

Simple library-based package manager (development files)

https://www.archlinux.org/pacman/

sudo apk add pacman-dev
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: pacman
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Pacman
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pacman-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

pacman-doc 7.1.0-r2

Simple library-based package manager (documentation)

https://www.archlinux.org/pacman/

sudo apk add pacman-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: pacman
  • installed executable or alias match
  • 匹配方式:Pacman
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pacman-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

pacman-lang 7.1.0-r2

Languages for package pacman

https://www.archlinux.org/pacman/

sudo apk add pacman-lang
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: pacman
  • installed executable or alias match
  • 匹配方式:Pacman
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pacman-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

pacman-zsh-completion 7.1.0-r2

Zsh completions for pacman

https://www.archlinux.org/pacman/

sudo apk add pacman-zsh-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: pacman
  • installed executable or alias match
  • 匹配方式:Pacman
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pacman-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf92%

libalpm 7.1.0-2.fc45

Arch Linux Package Management library

https://gitlab.archlinux.org/pacman/pacman

sudo dnf install libalpm
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: pacman
  • 6 依赖
  • 2 提供
  • installed executable or alias match
  • 匹配方式:Pacman
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libalpm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

libalpm-devel 7.1.0-2.fc45

Development headers for libalpm

https://gitlab.archlinux.org/pacman/pacman

sudo dnf install libalpm-devel
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: pacman
  • 3 依赖
  • 2 提供
  • installed executable or alias match
  • 匹配方式:Pacman
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libalpm-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

pacman 7.1.0-2.fc45

Package manager for the Arch distribution

https://gitlab.archlinux.org/pacman/pacman

sudo dnf install pacman
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: pacman
  • 7 依赖
  • 3 提供
  • installed executable or alias match
  • 匹配方式:Pacman
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: pacman from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

pacman-filesystem 7.1.0-2.fc45

Pacman filesystem layout

https://gitlab.archlinux.org/pacman/pacman

sudo dnf install pacman-filesystem
  • License: LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: pacman
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Pacman
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: pacman-filesystem from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman92%

pacman 7.1.0.r9.g54d9411-2

A library-based package manager with dependency support

https://www.archlinux.org/pacman/

sudo pacman -S pacman
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • 18 依赖
  • 1 提供
  • 2 可选依赖
  • installed executable or alias match
  • 匹配方式:Pacman
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: pacman from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

来源线索

由仓库数据生成

此页面由 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 configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment