{"id":7237,"date":"2020-04-29T08:01:22","date_gmt":"2020-04-29T00:01:22","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7237"},"modified":"2020-04-29T08:01:23","modified_gmt":"2020-04-29T00:01:23","slug":"rpmlint","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/rpmlint","title":{"rendered":"rpmlint\u547d\u4ee4 – \u68c0\u67e5rpm\u8f6f\u4ef6\u5305\u4e2d\u7684\u5e38\u89c1\u9519\u8bef"},"content":{"rendered":"\n

rpmlint\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u68c0\u67e5rpm\u8f6f\u4ef6\u5305\u4e2d\u5e38\u89c1\u7684\u9519\u8bef\u3002\u4f7f\u7528rpmlint\u547d\u4ee4\u9700\u8981\u5148\u5b89\u88c5rpmlint\u8f6f\u4ef6\u5305\u3002<\/p>\n\n\n\n

rpmlint\u547d\u4ee4\u53ef\u7528\u4e8e\u5728\u4e0a\u4f20\u4e4b\u524d\u6d4b\u8bd5\u5355\u4e2a\u8f6f\u4ef6\u5305\u6216\u68c0\u67e5\u6574\u4e2a\u53d1\u884c\u7248\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5c06\u5bf9\u5305\u8fdb\u884c\u5168\u9762\u68c0\u67e5\uff0c\u6839\u636e\u9700\u8981\u53ef\u4ee5\u4f7f\u7528\u53c2\u6570\u6267\u884c\u7279\u5b9a\u7684\u68c0\u67e5\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:<\/strong> rpmlint [\u53c2\u6570] [\u6587\u4ef6\u6216\u8f6f\u4ef6\u5305]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-I<\/td>\u672a\u6307\u5b9a\u7684\u6d88\u606f\u6807\u8bc6\u7b26\u663e\u793a\u89e3\u91ca\u7136\u540e\u9000\u51fa<\/td><\/tr>
-v<\/td>\u8be6\u7ec6\u6a21\u5f0f<\/td><\/tr>
-C<\u76ee\u5f55><\/td>\u5728\u8def\u5f84\u5217\u8868\u7684\u524d\u9762\u63d2\u5165\u6307\u5b9a\u76ee\u5f55\uff0c\u6765\u8fdb\u884c\u52a0\u8f7d\u68c0\u67e5<\/td><\/tr>
-a<\/td>\u68c0\u67e5\u6240\u6709\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/td><\/tr>
-c<\/td>\u53ea\u8fd0\u884c\u6307\u5b9a\u7684\u68c0\u67e5<\/td><\/tr>
-i<\/td>\u663e\u793a\u62a5\u544a\u4fe1\u606f\u7684\u8bf4\u660e<\/td><\/tr>
-E<\u76ee\u5f55><\/td>\u4e3a\u63d0\u53d6\u4e34\u65f6\u6587\u4ef6\u6307\u5b9a\u57fa\u672c\u76ee\u5f55<\/td><\/tr>
-n<\/td>\u5ffd\u7565\u8f93\u51fa\u8fc7\u6ee4<\/td><\/tr>
-f<\u914d\u7f6e\u6587\u4ef6><\/td>\u4ece\u6307\u5b9a\u7684\u6587\u4ef6\u52a0\u8f7d\u7528\u6237\u7684\u914d\u7f6e<\/td><\/tr>
-o<\u503c><\/td>\u8986\u76d6\u914d\u7f6e\u9009\u9879<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u68c0\u67e5\u6307\u5b9a\u8f6f\u4ef6\u5305\u4e2d\u7684\u9519\u8bef\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rpmlint bind<\/pre>\n\n\n\n

\u68c0\u67e5\u6240\u6709\u7684\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rpmlint -a<\/pre>\n\n\n\n

\u8be6\u7ec6\u68c0\u67e5\u6240\u6709\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rpmlint -a -v<\/pre>\n","protected":false},"excerpt":{"rendered":"

rpmlint\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u68c0\u67e5rpm\u8f6f\u4ef6\u5305\u4e2d\u5e38\u89c1\u7684\u9519\u8bef\u3002\u4f7f\u7528rpmlint\u547d\u4ee4\u9700\u8981\u5148\u5b89\u88c5rpmlint\u8f6f\u4ef6 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7237"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=7237"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7237\/revisions"}],"predecessor-version":[{"id":7266,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7237\/revisions\/7266"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}