{"id":7026,"date":"2020-04-29T18:49:20","date_gmt":"2020-04-29T10:49:20","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7026"},"modified":"2020-04-29T18:49:21","modified_gmt":"2020-04-29T10:49:21","slug":"yumdownloader","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/yumdownloader","title":{"rendered":"yumdownloader\u547d\u4ee4 – \u4eceyum\u5b58\u50a8\u5e93\u4e0b\u8f7drpm\u5305"},"content":{"rendered":"\n

yumdownloader\u662f\u4e00\u4e2a\u7528\u4e8e\u4eceyum\u5b58\u50a8\u5e93\u4e0b\u8f7drpm\u7684\u7a0b\u5e8f\u3002<\/p>\n\n\n\n

yumdownloader\u662f\u4e00\u6b3e\u7b80\u5355\uff0c\u4f46\u662f\u5374\u5341\u5206\u6709\u7528\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u4e00\u6b21\u6027\u4e0b\u8f7d\u4efb\u4f55 rpm \u8f6f\u4ef6\u5305\u53ca\u5176\u6240\u6709\u4f9d\u8d56\u5305\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>yumdownloader [\u53c2\u6570]<\/p>\n\n\n\n

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

--destdir<\/td>\u6307\u5b9a\u4e0b\u8f7d\u7684\u76ee\u6807\u76ee\u5f55\uff0c\u9ed8\u8ba4\u4e3a\u5f53\u524d\u76ee\u5f55<\/td><\/tr>
--resolve<\/td>\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\u5e76\u4e0b\u8f7d\u6240\u9700\u7684\u5305<\/td><\/tr>
--source<\/td>\u4e0d\u662f\u4e0b\u8f7d\u4e8c\u8fdb\u5236RPM\uff0c\u800c\u662f\u4e0b\u8f7d\u6e90RPM<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u4f7f\u7528\u672c\u5730\u6e90\u79bb\u7ebf\u5b89\u88c5net-tools\u5de5\u5177\u5305\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# yumdownloader net-tools.x86_64<\/pre>\n\n\n\n

\u4f7f\u7528--destdir\u53c2\u6570\u8bbe\u7f6e\u4e0b\u8f7d\u7684\u76ee\u6807\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# yumdownloader net-tools.x86_64 --destdir=\/usr\/local\/bin\/<\/pre>\n\n\n\n

\u4f7f\u7528--resolve\u53c2\u6570\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\u5e76\u4e0b\u8f7d\u6240\u9700\u7684\u5b89\u88c5\u5305\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# yumdownloader net-tools.x86_64 --resolve --destdir=\/usr\/local\/bin\/<\/pre>\n","protected":false},"excerpt":{"rendered":"

yumdownloader\u662f\u4e00\u4e2a\u7528\u4e8e\u4eceyum\u5b58\u50a8\u5e93\u4e0b\u8f7drpm\u7684\u7a0b\u5e8f\u3002 yumdownloader\u662f\u4e00\u6b3e\u7b80\u5355\uff0c\u4f46 […]<\/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\/7026"}],"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=7026"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7026\/revisions"}],"predecessor-version":[{"id":7150,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7026\/revisions\/7150"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}