{"id":7004,"date":"2020-04-29T18:49:13","date_gmt":"2020-04-29T10:49:13","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7004"},"modified":"2020-04-29T18:49:14","modified_gmt":"2020-04-29T10:49:14","slug":"yum-builddep","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/yum-builddep","title":{"rendered":"yum-builddep\u547d\u4ee4 – \u5b89\u88c5\u7f3a\u5c11\u7684\u7528\u4e8e\u751f\u6210RPM\u5305\u7684\u4f9d\u8d56\u9879"},"content":{"rendered":"\n

yum-builddep\u547d\u4ee4\u53ef\u4ee5\u5b89\u88c5\u5efa\u7acb\u6307\u5b9a\u7684\u5305\u6240\u9700\u8981\u7684RPM\u5305\uff0c\u6e90RPM\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\u5fc5\u987b\u63d0\u4f9b\u4e00\u4e2ayum\u8f6f\u4ef6\u5e93\uff08\u5982\u679c\u5b83\u88ab\u7981\u7528\uff0c\u5c06\u88ab\u81ea\u52a8\u542f\u7528\uff09\u6216\u5b83\u53ef\u4ee5\u662f\u4e00\u4e2a\u672c\u5730\u6e90RPM\u6587\u4ef6\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f :<\/strong>yum-builddep [\u53c2\u6570] [\u8f6f\u4ef6\u53051] [\u8f6f\u4ef6\u53052]<\/p>\n\n\n\n

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

-C<\/td>\u4ece\u7cfb\u7edf\u7f13\u5b58\u4e2d\u5b8c\u5168\u8fd0\u884c\uff0c\u4e0d\u66f4\u65b0\u7f13\u5b58<\/td><\/tr>
-c <\u914d\u7f6e\u6587\u4ef6><\/td>\u914d\u7f6e\u6587\u4ef6\u7684\u4f4d\u7f6e<\/td><\/tr>
-v<\/td>\u8be6\u7ec6\u64cd\u4f5c<\/td><\/tr>
-q<\/td>\u5b89\u9759\u6a21\u5f0f<\/td><\/tr>
-y<\/td>\u5bf9\u6240\u6709\u95ee\u9898\u56de\u7b54yes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6240\u6709\u751f\u6210kernel\u7684RPM\u6240\u9700\u7684RPM\u5305\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# yum-builddep kernel<\/pre>\n\n\n\n

\u4f7f\u7528-v\u53c2\u6570\u663e\u793a\u8be6\u7ec6\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# yum-builddep -v net-tools<\/pre>\n\n\n\n

\u4f7f\u7528-y\u53c2\u6570\u4e00\u6b65\u5230\u4f4d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# yum-builddep -y net-tools<\/pre>\n","protected":false},"excerpt":{"rendered":"

yum-builddep\u547d\u4ee4\u53ef\u4ee5\u5b89\u88c5\u5efa\u7acb\u6307\u5b9a\u7684\u5305\u6240\u9700\u8981\u7684RPM\u5305\uff0c\u6e90RPM\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\u5fc5\u987b\u63d0\u4f9b\u4e00\u4e2ayum\u8f6f\u4ef6\u5e93 […]<\/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\/7004"}],"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=7004"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7004\/revisions"}],"predecessor-version":[{"id":7152,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7004\/revisions\/7152"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}