Linux command
pkgdiff 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Compare
pkgdiff [package1.txz] [package2.txz]
Example
pkgdiff -c [package1.txz] [package2.txz]
Example
pkgdiff -a [package1.txz] [package2.txz]
说明
pkgdiff compares the contents of two Slackware packages and displays the differences. It shows files that were added, removed, or modified between package versions, useful for reviewing package updates. The tool extracts both packages temporarily and compares their file listings and contents, similar to diff but specialized for package archives.
参数
- -a
- Output simple unified diff format
- -c
- Colorize output for readability
FAQ
What is the pkgdiff command used for?
pkgdiff compares the contents of two Slackware packages and displays the differences. It shows files that were added, removed, or modified between package versions, useful for reviewing package updates. The tool extracts both packages temporarily and compares their file listings and contents, similar to diff but specialized for package archives.
How do I run a basic pkgdiff example?
Run `pkgdiff [package1.txz] [package2.txz]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a do in pkgdiff?
Output simple unified diff format