macOS
brew install makepkglocal Homebrew formula metadata
安装
brew install makepkglocal Homebrew formula metadata
sudo apt install makepkgDebian stable package indexes · makepkg · 来源: deb.debian.org
sudo apk add pacmanAlpine Linux edge package indexes · pacman · 来源: dl-cdn.alpinelinux.org
sudo dnf install libalpmFedora Rawhide package metadata · libalpm · 来源: dl.fedoraproject.org
nix profile install nixpkgs#pacmannixpkgs package indexes · pkgs/by-name/pa/pacman/package.nix · 来源: api.github.com
sudo pacman -S pacmanArch Linux sync databases · pacman · 来源: geo.mirror.pkgbuild.com
概览
Compile and build packages suitable for installation with pacman
历史
`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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
/etc/makepkg.conf/etc/makepkg.conf.d/*.conf$XDG_CONFIG_HOME/pacman/makepkg.conf~/.makepkg.conf可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
makepkg | cli | 全局可执行文件 | |
makepkg-template | cli | 全局可执行文件 | |
pacman | cli | 全局可执行文件 | |
pacman-conf | cli | 全局可执行文件 | |
pacman-db-upgrade | cli | 全局可执行文件 | |
pacman-key | cli | 全局可执行文件 | |
repo-add | cli | 全局可执行文件 | |
repo-elephant | cli | 全局可执行文件 | |
repo-remove | cli | 全局可执行文件 | |
testpkg | cli | 全局可执行文件 | |
vercmp | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 依赖 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | makepkg |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
makepkg 7.0.0-1+b1
Arch Linux package build utility
sudo apt install makepkgmakepkg 6.0.2-6ubuntu2
Arch Linux package build utility
sudo apt install makepkgpacman 10-21
Chase Monsters in a Labyrinth
sudo apt install pacmanpacman
nix profile install nixpkgs#pacmanpacman 10-19
Chase Monsters in a Labyrinth
sudo apt install pacmanpacman 7.1.0-r2
Simple library-based package manager
https://www.archlinux.org/pacman/
sudo apk add pacmanpacman-bash-completion 7.1.0-r2
Bash completions for pacman
https://www.archlinux.org/pacman/
sudo apk add pacman-bash-completionpacman-dev 7.1.0-r2
Simple library-based package manager (development files)
https://www.archlinux.org/pacman/
sudo apk add pacman-devpacman-doc 7.1.0-r2
Simple library-based package manager (documentation)
https://www.archlinux.org/pacman/
sudo apk add pacman-docpacman-lang 7.1.0-r2
Languages for package pacman
https://www.archlinux.org/pacman/
sudo apk add pacman-langpacman-zsh-completion 7.1.0-r2
Zsh completions for pacman
https://www.archlinux.org/pacman/
sudo apk add pacman-zsh-completionlibalpm 7.1.0-2.fc45
Arch Linux Package Management library
https://gitlab.archlinux.org/pacman/pacman
sudo dnf install libalpmlibalpm-devel 7.1.0-2.fc45
Development headers for libalpm
https://gitlab.archlinux.org/pacman/pacman
sudo dnf install libalpm-develpacman 7.1.0-2.fc45
Package manager for the Arch distribution
https://gitlab.archlinux.org/pacman/pacman
sudo dnf install pacmanpacman-filesystem 7.1.0-2.fc45
Pacman filesystem layout
https://gitlab.archlinux.org/pacman/pacman
sudo dnf install pacman-filesystempacman 7.1.0.r9.g54d9411-2
A library-based package manager with dependency support
https://www.archlinux.org/pacman/
sudo pacman -S pacman来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.