← 返回命令列表

Linux command

pkgctl-build 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

pkgctl build

Example

pkgctl build --arch [architecture] --repo [repository] --clean

说明

pkgctl build builds Arch Linux packages inside a clean chroot environment, ensuring reproducible and isolated builds. It's the official tool for Arch Linux packagers to build packages for the repositories. The command automatically detects the appropriate build configuration from the PKGBUILD and repository settings. It uses devtools infrastructure to create isolated build environments. Building in a clean chroot prevents host system contamination and ensures packages only depend on declared dependencies.

参数

--arch _arch_
Target architecture to build for
--repo _name_
Target repository
--clean
Clean the chroot before building
--staging
Build against staging repositories
--testing
Build against testing repositories
--worker _n_
Number of parallel workers
--inspect _when_
Inspect chroot: always, never, or failure

FAQ

What is the pkgctl-build command used for?

pkgctl build builds Arch Linux packages inside a clean chroot environment, ensuring reproducible and isolated builds. It's the official tool for Arch Linux packagers to build packages for the repositories. The command automatically detects the appropriate build configuration from the PKGBUILD and repository settings. It uses devtools infrastructure to create isolated build environments. Building in a clean chroot prevents host system contamination and ensures packages only depend on declared dependencies.

How do I run a basic pkgctl-build example?

Run `pkgctl build` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --arch _arch_ do in pkgctl-build?

Target architecture to build for