← 返回命令列表

Linux command

pkgctl-diff 命令

文件

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

常用示例

Example

pkgctl diff -l path/to/file

Example

pkgctl diff -d path/to/file

Example

pkgctl diff -p path/to/file

Example

pkgctl diff -b path/to/file

说明

pkgctl diff compares a locally built .pkg.tar.zst against the same package as currently published in the official Arch repositories (or against another local package file). It is the standard pre-release sanity check for Arch package maintainers, exposing accidental file moves, dropped binaries, soname bumps, or unintended .PKGINFO/.BUILDINFO drift. Without flags it runs in --list mode, which compares the tar manifest. Use --diffoscope for byte-level differences (slow but exhaustive), --pkginfo for runtime metadata, or --buildinfo to verify reproducibility-relevant fields like compiler flags and installed build dependencies.

参数

-l, --list
Compare using tar content list mode (default)
-d, --diffoscope
Compare using diffoscope for detailed diff
-p, --pkginfo
Compare .PKGINFO metadata files
-b, --buildinfo
Compare .BUILDINFO files

FAQ

What is the pkgctl-diff command used for?

pkgctl diff compares a locally built .pkg.tar.zst against the same package as currently published in the official Arch repositories (or against another local package file). It is the standard pre-release sanity check for Arch package maintainers, exposing accidental file moves, dropped binaries, soname bumps, or unintended .PKGINFO/.BUILDINFO drift. Without flags it runs in --list mode, which compares the tar manifest. Use --diffoscope for byte-level differences (slow but exhaustive), --pkginfo for runtime metadata, or --buildinfo to verify reproducibility-relevant fields like compiler flags and installed build dependencies.

How do I run a basic pkgctl-diff example?

Run `pkgctl diff -l path/to/file` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l, --list do in pkgctl-diff?

Compare using tar content list mode (default)