{"id":445,"date":"2015-08-29T22:03:12","date_gmt":"2015-08-29T14:03:12","guid":{"rendered":"http:\/\/www.ipcpu.com\/?p=445"},"modified":"2015-08-29T22:03:12","modified_gmt":"2015-08-29T14:03:12","slug":"reposync-yum","status":"publish","type":"post","link":"https:\/\/c.ipcpu.com\/2015\/08\/reposync-yum\/","title":{"rendered":"\u4f7f\u7528reposync\u540c\u6b65yum\u6e90"},"content":{"rendered":"

\u4f7f\u7528reposync\u540c\u6b65yum\u6e90.md<\/p>\n

Openstack RDO\u4f7f\u7528\u7684\u6e90\u662frepos.fedorapeople.org \uff0c\u8fd9\u4e2a\u670d\u52a1\u5668\u5728\u56fd\u5916\uff0c\u7279\u522b\u6162\u800c\u4e14\u5bb9\u6613\u4e2d\u65ad\u3002<\/p>\n

\u6700\u597d\u80fd\u5728\u56fd\u5185\u540c\u6b65\u4e00\u4efd\u6570\u636e\u8fc7\u6765\uff0c\u4f46\u662f\u7ecf\u6d4b\u8bd5\u53d1\u73b0\u8fd9\u4e2a\u673a\u5668\u6ca1\u6709\u5f00\u542frsync \u670d\u52a1\u3002<\/p>\n

\u4e0a\u7f51\u627e\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u7cfb\u7edf\u81ea\u5e26\u4e00\u4e2areposync\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\u540c\u6837\u7684\u529f\u80fd\u3002<\/p>\n

1. \u5b89\u88c5reposync<\/h3>\n
  1. yum install yum<\/span>-<\/span>utils createrepo yum<\/span>-<\/span>plugin<\/span>-<\/span>priorities <\/span>-<\/span>y<\/span><\/code><\/li><\/ol><\/pre>\n

    reposync\u547d\u4ee4\u662f\u4e00\u4e2apython\u811a\u672c\u3002\u5305\u542b\u5728yum-utils\u5305\u4e2d\u3002<\/p>\n

    2. \u83b7\u53d6yum\u6587\u4ef6<\/h3>\n
    1. #\u5b89\u88c5rdo\u7684\u6e90\u6587\u4ef6<\/span><\/code><\/li>
    2. yum install <\/span>-<\/span>y http<\/span>:<\/span>\/\/rdo.fedorapeople.org\/rdo-release.rpm<\/span><\/code><\/li>
    3. #\u67e5\u770b\u6e90ID\u7684\u5217\u8868<\/span><\/code><\/li>
    4. yum repolist<\/span><\/code><\/li><\/ol><\/pre>\n

      3. \u6267\u884c\u540c\u6b65<\/h3>\n
      1. cd <\/span>\/<\/span>home<\/span>\/<\/span>htdocs<\/span>\/<\/span>openstack<\/span><\/code><\/li>
      2. reposync <\/span>--<\/span>repoid<\/span>=<\/span>openstack<\/span>-<\/span>kilo<\/span><\/code><\/li><\/ol><\/pre>\n

        \u6267\u884c\u547d\u4ee4\u4ee5\u540e\uff0c\u53ef\u4ee5\u770b\u5230reposync\u5df2\u7ecf\u5728\u5f53\u524d\u76ee\u5f55\u751f\u6210\u4e86\u548c\u8fdc\u7a0byum\u6e90\u4e00\u81f4\u7684\u6587\u4ef6\u3002<\/p>\n

        4. \u67b6\u8bbenginx\u5bf9\u5916\u670d\u52a1<\/h3>\n

        \u6b64\u6b65\u9aa4\u7701\u7565\u3002<\/p>\n

        \u6765\u81ea\u4e3a\u77e5\u7b14\u8bb0(Wiz)<\/a><\/div>\n

        \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def<\/a> » \u4f7f\u7528reposync\u540c\u6b65yum\u6e90<\/a><\/p>","protected":false},"excerpt":{"rendered":"

        \u4f7f\u7528reposync\u540c\u6b65yum\u6e90.md Openstack RDO\u4f7f\u7528\u7684\u6e90\u662frepos.fedorapeople.org \uff0c\u8fd9\u4e2a\u670d\u52a1\u5668\u5728\u56fd\u5916\uff0c\u7279\u522b\u6162\u800c\u4e14\u5bb9\u6613\u4e2d\u65ad\u3002 \u6700\u597d\u80fd\u5728\u56fd\u5185\u540c\u6b65\u4e00\u4efd\u6570\u636e\u8fc7\u6765\uff0c\u4f46\u662f\u7ecf\u6d4b\u8bd5\u53d1\u73b0\u8fd9\u4e2a\u673a\u5668\u6ca1\u6709\u5f00\u542frsync \u670d\u52a1\u3002 \u4e0a\u7f51\u627e\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u7cfb\u7edf\u81ea\u5e26\u4e00\u4e2areposync\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\u540c\u6837\u7684\u529f\u80fd\u3002 1. \u5b89\u88c5reposync yum install yum-utils createrepo yum-plugin-priorities -y reposync\u547d\u4ee4\u662f\u4e00\u4e2apython\u811a\u672c\u3002\u5305\u542b\u5728yum-utils\u5305\u4e2d\u3002 2. \u83b7\u53d6yum\u6587\u4ef6 #\u5b89\u88c5rdo\u7684\u6e90\u6587\u4ef6yum install -y http:\/\/rdo.fedorapeople.org\/rdo-release.rpm#\u67e5\u770b\u6e90ID\u7684\u5217\u8868yum repolist 3. \u6267\u884c\u540c\u6b65 cd \/home\/htdocs\/openstackreposync –repoid=openstack-kilo \u6267\u884c\u547d\u4ee4\u4ee5\u540e\uff0c\u53ef\u4ee5\u770b\u5230reposync\u5df2\u7ecf\u5728\u5f53\u524d\u76ee\u5f55\u751f\u6210\u4e86\u548c\u8fdc\u7a0byum\u6e90\u4e00\u81f4\u7684\u6587\u4ef6\u3002 4. \u67b6\u8bbenginx\u5bf9\u5916\u670d\u52a1 \u6b64\u6b65\u9aa4\u7701\u7565\u3002 \u6765\u81ea\u4e3a\u77e5\u7b14\u8bb0(Wiz) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def » \u4f7f\u7528reposync\u540c\u6b65yum\u6e90<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[17,43],"_links":{"self":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/445"}],"collection":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/comments?post=445"}],"version-history":[{"count":0,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/445\/revisions"}],"wp:attachment":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/media?parent=445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/categories?post=445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/tags?post=445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}