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.

参考资料

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/rpm_packaging_guide/packaging-software#checking-rpms-for-sanity

posted on 2019-05-22 18:38  荣锋亮  阅读(582)  评论(0编辑  收藏  举报

导航