{"id":7009,"date":"2020-04-29T18:48:49","date_gmt":"2020-04-29T10:48:49","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7009"},"modified":"2022-05-26T16:53:49","modified_gmt":"2022-05-26T08:53:49","slug":"yum-config-manager","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/yum-config-manager","title":{"rendered":"yum-config-manager\u547d\u4ee4 – \u7ba1\u7406\u8f6f\u4ef6\u4ed3\u5e93"},"content":{"rendered":"\n
yum-config-manager\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u7ba1\u7406\u8f6f\u4ef6\u4ed3\u5e93\uff0c\u53ef\u4ee5\u8c03\u6574yum\u7684\u4e3b\u8981\u914d\u7f6e\u53c2\u6570\uff0c\u542f\u52a8\u6216\u5173\u95ed\u6307\u5b9a\u8f6f\u4ef6\u6e90\uff0c\u5220\u9664\u5df2\u6709\u8f6f\u4ef6\u4ed3\u5e93\u7b49\u5de5\u4f5c\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>yum-config-manager [\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 \u663e\u793a\u6307\u5b9a\u8f6f\u4ef6\u4ed3\u5e93\u7684\u914d\u7f6e\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u6dfb\u52a0\u6307\u5b9a\u7684\u8f6f\u4ef6\u4ed3\u5e93\u6765\u6e90\uff1a<\/p>\n\n\n\n \u663e\u793a\u5f53\u524d\u5df2\u542f\u7528\u7684\u8f6f\u4ef6\u4ed3\u5e93\u4fe1\u606f\uff1a<\/p>\n\n\n\n yum-config-manager\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u7ba1\u7406\u8f6f\u4ef6\u4ed3\u5e93\uff0c\u53ef\u4ee5\u8c03\u6574yum\u7684\u4e3b\u8981\u914d\u7f6e\u53c2\u6570\uff0c\u542f\u52a8\u6216\u5173\u95ed\u6307\u5b9a […]<\/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\/7009"}],"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=7009"}],"version-history":[{"count":11,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7009\/revisions"}],"predecessor-version":[{"id":10086,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7009\/revisions\/10086"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-e<\u9519\u8bef\u7ea7\u522b><\/td> \u9519\u8bef\u8f93\u51fa\u7ea7\u522b<\/td><\/tr> -d<\u8c03\u8bd5\u7ea7\u522b><\/td> \u8c03\u8bd5\u8f93\u51fa\u7ea7\u522b<\/td><\/tr> -c<\u914d\u7f6e\u6587\u4ef6><\/td> \u6307\u5b9a\u914d\u7f6e\u6587\u4ef6\u7684\u4f4d\u7f6e<\/td><\/tr> -t<\/td> \u9519\u8bef\u5bbd\u5bb9<\/td><\/tr> --enable<\/td> \u542f\u7528\u8f6f\u4ef6\u4ed3\u5e93<\/td><\/tr> --disable<\/td> \u7981\u7528\u8f6f\u4ef6\u4ed3\u5e93<\/td><\/tr> --add-repo=<\u8f6f\u4ef6\u4ed3\u5e93><\/td> \u4ece\u6307\u5b9a\u6587\u4ef6\u6216URL\u6dfb\u52a0\uff08\u548c\u542f\u7528\uff09\u8f6f\u4ef6\u4ed3\u5e93<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# yum-config-manager baseOS<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# yum-config-manager --add-repo https:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# yum-config-manager --enable<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"