rpmlint 方便的rpm spec 以及rpm 文件检查工具
rpmlint 可以方便的让我们检查rpm spec 的信息,给予我们提示以及改进,同时也支持对于rpm 文件处理
安装
yum install -y rpmlint
使用
- spec 检查
rpmlint SPECS/rong.spec
效果
0 packages and 1 specfiles checked; 0 errors, 0 warnings.
- rpm 包检查
rpmlint RPMS/x86_64/dalong-demo-1-1.x86_64.rpm
效果
dalong-demo.x86_64: W: summary-not-capitalized C this is a demo
dalong-demo.x86_64: E: no-changelogname-tag
dalong-demo.x86_64: W: invalid-license fixme
dalong-demo.x86_64: W: no-url-tag
dalong-demo.x86_64: E: no-binary
dalong-demo.x86_64: W: no-documentation
dalong-demo.x86_64: W: no-manual-page-for-binary dalong.sh
1 packages and 0 specfiles checked; 2 errors, 5 warnings.