{"id":5408,"date":"2019-11-12T13:58:45","date_gmt":"2019-11-12T05:58:45","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5408"},"modified":"2019-11-28T21:41:22","modified_gmt":"2019-11-28T13:41:22","slug":"createrepo","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/createrepo","title":{"rendered":"createrepo\u547d\u4ee4 – \u521b\u5efayum\u6e90\u751f\u6210\u5143\u6570\u636e"},"content":{"rendered":"\n
createrepo\u547d\u4ee4\u7528\u4ee5\u521b\u5efayum\u6e90\uff08\u8f6f\u4ef6\u4ed3\u5e93\uff09\uff0c\u5373\u4e3a\u5b58\u653e\u4e8e\u672c\u5730\u7279\u5b9a\u4f4d\u7f6e\u7684\u4f17\u591arpm\u5305\u5efa\u7acb\u7d22\u5f15\uff0c\u63cf\u8ff0\u5404\u5305\u6240\u9700\u4f9d\u8d56\u4fe1\u606f\uff0c\u5e76\u5f62\u6210\u5143\u6570\u636e\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>createrepo [\u53c2\u6570] <\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u521b\u5efa\u4ed3\u5e93\uff1a<\/p>\n\n\n\n \u521d\u59cb\u5316\u6e90\u76ee\u5f55\uff0c\u4ea7\u751frepodata\uff1a<\/p>\n\n\n\n createrepo\u547d\u4ee4\u7528\u4ee5\u521b\u5efayum\u6e90\uff08\u8f6f\u4ef6\u4ed3\u5e93\uff09\uff0c\u5373\u4e3a\u5b58\u653e\u4e8e\u672c\u5730\u7279\u5b9a\u4f4d\u7f6e\u7684\u4f17\u591arpm\u5305\u5efa\u7acb\u7d22\u5f15\uff0c\u63cf\u8ff0\u5404\u5305\u6240 […]<\/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\/5408"}],"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=5408"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5408\/revisions"}],"predecessor-version":[{"id":5826,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5408\/revisions\/5826"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-u<\/td> \u6307\u5b9aBase URL\u7684\u5730\u5740<\/td><\/tr> -o<\/td> \u6307\u5b9a\u5143\u6570\u636e\u7684\u8f93\u51fa\u4f4d\u7f6e<\/td><\/tr> -x<\/td> \u6307\u5b9a\u5728\u5f62\u6210\u5143\u6570\u636e\u65f6\u9700\u8981\u6392\u9664\u7684\u5305<\/td><\/tr> -q<\/td> \u5b89\u9759\u6a21\u5f0f\u6267\u884c\u64cd\u4f5c\uff0c\u4e0d\u8f93\u51fa\u4efb\u4f55\u4fe1\u606f<\/td><\/tr> -p<\/td> \u4ee5\u6574\u6d01\u7684\u683c\u5f0f\u8f93\u51faxml\u6587\u4ef6<\/td><\/tr> -d<\/td> \u8be5\u9009\u9879\u6307\u5b9a\u4f7f\u7528SQLite\u6765\u5b58\u50a8\u751f\u6210\u7684\u5143\u6570\u636e\uff0c\u9ed8\u8ba4\u9879<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# createrepo \/packages<\/pre>\n\n\n\n
[root@linuxcool ~]# mkdir -p \/yum\/centos\/6\/ \n[root@linuxcool ~]# createrepo -p -d -o \/yum\/centos\/6\/ix86_64 \/yum\/centos\/6\/ix86_64 \n<\/pre>\n","protected":false},"excerpt":{"rendered":"