{"id":19076,"date":"2024-11-19T09:53:46","date_gmt":"2024-11-19T01:53:46","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19076\/"},"modified":"2024-11-19T09:53:46","modified_gmt":"2024-11-19T01:53:46","slug":"linux-git-yum%e5%ae%89%e8%a3%85%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19076\/","title":{"rendered":"Linux Git Yum\u5b89\u88c5\u6307\u5357"},"content":{"rendered":"<p>\u5728linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0cgit\u548cyum\u662f\u4e24\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u5de5\u5177\u3002git\u662f\u4e00\u6b3e\u514d\u8d39\u7684\u5f00\u6e90\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u4e8e\u5904\u7406\u5404\u79cd\u9879\u76ee\u7684\u7248\u672c\u63a7\u5236\uff1b\u800cyum\u662fred hat\u7cfb\u5217linux\u53d1\u884c\u7248\u6240\u4f7f\u7528\u7684\u5305\u7ba1\u7406\u5668\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u65b9\u4fbf\u5730\u5b89\u88c5\u3001\u5347\u7ea7\u548c\u5220\u9664\u8f6f\u4ef6\u5305\u3002<\/p>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u624b\u628a\u624b\u5730\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u7cfb\u7edf\u4e2d\u8fdb\u884cGit\u548cYum\u7684\u5b89\u88c5\u6b65\u9aa4\u3002<\/p>\n<p>\u4e00\u3001Git\u5b89\u88c5<\/p>\n<p>\u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u5b89\u88c5Git\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5176\u4e2d\u6700\u7b80\u5355\u7684\u65b9\u5f0f\u662f\u4f7f\u7528Yum\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u3002<\/p>\n<p>\u6b65\u9aa41\uff1a \u67e5\u770b\u662f\u5426\u5df2\u5b89\u88c5Git<\/p>\n<p>\u5728\u5f00\u59cb\u5b89\u88c5Git\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u5148\u786e\u8ba4\u662f\u5426\u5df2\u7ecf\u5728\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86Git\u3002\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5b58\u5728Git\uff1a<\/p>\n<pre>git --version<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5982\u679c\u7cfb\u7edf\u4e2d\u5df2\u7ecf\u5b58\u5728Git\uff0c\u5219\u7ec8\u7aef\u5c06\u663e\u793a\u51faGit\u7248\u672c\u53f7\uff0c\u5426\u5219\u5c06\u9700\u8981\u8fdb\u884c\u5b89\u88c5\u64cd\u4f5c\u3002<\/p>\n<p>\u6b65\u9aa42\uff1a \u5b89\u88c5Git<\/p>\n<p>\u5728\u7cfb\u7edf\u4e2d\u5b89\u88c5Git\u7684\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre>sudo yum install git<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u9700\u8981\u8f93\u5165root\u5bc6\u7801\u3002<\/p>\n<p>\u6b65\u9aa43\uff1a \u9a8c\u8bc1\u5b89\u88c5\u7ed3\u679c<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u9700\u8981\u9a8c\u8bc1\u662f\u5426\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5Git\u662f\u5426\u5df2\u7ecf\u6210\u529f\u5b89\u88c5\uff1a<\/p>\n<pre>git --version<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5982\u679c\u7ec8\u7aef\u80fd\u591f\u6b63\u786e\u5730\u663e\u793a\u51faGit\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8868\u793a\u5df2\u7ecf\u6210\u529f\u5b89\u88c5Git\u3002<\/p>\n<p>\u4e8c\u3001Yum\u5b89\u88c5<\/p>\n<p>Yum\u662fLinux\u7cfb\u7edf\u4e2d\u4e00\u79cd\u975e\u5e38\u6d41\u884c\u7684\u5305\u7ba1\u7406\u5668\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u65b9\u4fbf\u5730\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002\u5728\u5b89\u88c5Yum\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u786e\u8ba4\u662f\u5426\u9700\u8981\u8fdb\u884c\u5b89\u88c5\u64cd\u4f5c\u3002<\/p>\n<p>\u6b65\u9aa41\uff1a\u67e5\u770b\u662f\u5426\u5df2\u5b89\u88c5Yum<\/p>\n<p>\u5728\u5f00\u59cb\u5b89\u88c5Yum\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u5148\u786e\u8ba4\u662f\u5426\u5df2\u7ecf\u5728\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86Yum\u3002\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5b58\u5728Yum\uff1a<\/p>\n<pre>yum --version<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5982\u679c\u7cfb\u7edf\u4e2d\u5df2\u7ecf\u5b58\u5728Yum\uff0c\u5219\u7ec8\u7aef\u5c06\u663e\u793a\u51faYum\u7248\u672c\u53f7\uff0c\u5426\u5219\u5c06\u9700\u8981\u8fdb\u884c\u5b89\u88c5\u64cd\u4f5c\u3002<\/p>\n<p>\u6b65\u9aa42\uff1a\u5b89\u88c5Yum<\/p>\n<p>\u5728\u7cfb\u7edf\u4e2d\u5b89\u88c5Yum\u7684\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre>sudo yum install yum<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u9700\u8981\u8f93\u5165root\u5bc6\u7801\u3002<\/p>\n<p>\u6b65\u9aa43\uff1a\u9a8c\u8bc1\u5b89\u88c5\u7ed3\u679c<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u9700\u8981\u9a8c\u8bc1\u662f\u5426\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5Yum\u662f\u5426\u5df2\u7ecf\u6210\u529f\u5b89\u88c5\uff1a<\/p>\n<pre>yum --version<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5982\u679c\u7ec8\u7aef\u80fd\u591f\u6b63\u786e\u5730\u663e\u793a\u51faYum\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8868\u793a\u5df2\u7ecf\u6210\u529f\u5b89\u88c5Yum\u3002<\/p>\n<p>\u603b\u7ed3<\/p>\n<p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u5b89\u88c5Git\u548cYum\u6709\u591a\u79cd\u65b9\u5f0f\uff0c\u800c\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u4e3b\u8981\u4ecb\u7ecd\u4e86\u4f7f\u7528Yum\u5305\u7ba1\u7406\u5668\u5b89\u88c5Git\u548cYum\u7684\u65b9\u6cd5\u3002\u867d\u7136\u65b9\u6cd5\u6bd4\u8f83\u7b80\u5355\uff0c\u4f46\u9700\u8981\u7528\u6237\u5177\u5907\u4e00\u5b9a\u7684Linux\u7cfb\u7edf\u64cd\u4f5c\u77e5\u8bc6\u3002\u56e0\u6b64\uff0c\u5728\u8fdb\u884c\u5b89\u88c5\u524d\uff0c\u5efa\u8bae\u7528\u6237\u5148\u719f\u7ec3\u638c\u63e1Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u57fa\u7840\u77e5\u8bc6\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fLinux Git Yum\u5b89\u88c5\u6307\u5357\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0cgit\u548cyum\u662f\u4e24\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u5de5\u5177\u3002git\u662f\u4e00\u6b3e\u514d\u8d39\u7684\u5f00\u6e90\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u4e8e\u5904\u7406\u5404\u79cd\u9879\u76ee\u7684\u7248\u672c\u63a7\u5236\uff1b\u800cyum\u662fred hat\u7cfb\u5217linux\u53d1\u884c\u7248\u6240\u4f7f\u7528\u7684\u5305\u7ba1\u7406\u5668\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u65b9\u4fbf\u5730\u5b89\u88c5\u3001\u5347\u7ea7\u548c\u5220\u9664\u8f6f\u4ef6\u5305\u3002 \u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u624b\u628a\u624b\u5730\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u7cfb\u7edf\u4e2d\u8fdb\u884cGit\u548cYum\u7684\u5b89\u88c5\u6b65\u9aa4\u3002 \u4e00\u3001Git\u5b89\u88c5 \u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u5b89\u88c5Git\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5176\u4e2d\u6700\u7b80\u5355\u7684\u65b9\u5f0f\u662f\u4f7f\u7528Yum\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u3002 \u6b65\u9aa41\uff1a \u67e5\u770b\u662f\u5426\u5df2\u5b89\u88c5Git \u5728\u5f00\u59cb\u5b89\u88c5Git\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u5148\u786e\u8ba4\u662f\u5426\u5df2\u7ecf\u5728\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86Git\u3002\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5b58\u5728Git\uff1a git &#8211;version \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u5982\u679c\u7cfb\u7edf\u4e2d\u5df2\u7ecf\u5b58\u5728Git\uff0c\u5219\u7ec8\u7aef\u5c06\u663e\u793a\u51faGit\u7248\u672c\u53f7\uff0c\u5426\u5219\u5c06\u9700\u8981\u8fdb\u884c\u5b89\u88c5\u64cd\u4f5c\u3002 \u6b65\u9aa42\uff1a \u5b89\u88c5Git \u5728\u7cfb\u7edf\u4e2d\u5b89\u88c5Git\u7684\u547d\u4ee4\u5982\u4e0b\uff1a sudo yum install git \u767b\u5f55\u540e\u590d\u5236 \u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u9700\u8981\u8f93\u5165root\u5bc6\u7801\u3002 \u6b65\u9aa43\uff1a \u9a8c\u8bc1\u5b89\u88c5\u7ed3\u679c \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u9700\u8981\u9a8c\u8bc1\u662f\u5426\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5Git\u662f\u5426\u5df2\u7ecf\u6210\u529f\u5b89\u88c5\uff1a git &#8211;version \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u5982\u679c\u7ec8\u7aef\u80fd\u591f\u6b63\u786e\u5730\u663e\u793a\u51faGit\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8868\u793a\u5df2\u7ecf\u6210\u529f\u5b89\u88c5Git\u3002 \u4e8c\u3001Yum\u5b89\u88c5 Yum\u662fLinux\u7cfb\u7edf\u4e2d\u4e00\u79cd\u975e\u5e38\u6d41\u884c\u7684\u5305\u7ba1\u7406\u5668\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u65b9\u4fbf\u5730\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002\u5728\u5b89\u88c5Yum\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u786e\u8ba4\u662f\u5426\u9700\u8981\u8fdb\u884c\u5b89\u88c5\u64cd\u4f5c\u3002 \u6b65\u9aa41\uff1a\u67e5\u770b\u662f\u5426\u5df2\u5b89\u88c5Yum \u5728\u5f00\u59cb\u5b89\u88c5Yum\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u5148\u786e\u8ba4\u662f\u5426\u5df2\u7ecf\u5728\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86Yum\u3002\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5b58\u5728Yum\uff1a yum &#8211;version \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u5982\u679c\u7cfb\u7edf\u4e2d\u5df2\u7ecf\u5b58\u5728Yum\uff0c\u5219\u7ec8\u7aef\u5c06\u663e\u793a\u51faYum\u7248\u672c\u53f7\uff0c\u5426\u5219\u5c06\u9700\u8981\u8fdb\u884c\u5b89\u88c5\u64cd\u4f5c\u3002 \u6b65\u9aa42\uff1a\u5b89\u88c5Yum \u5728\u7cfb\u7edf\u4e2d\u5b89\u88c5Yum\u7684\u547d\u4ee4\u5982\u4e0b\uff1a sudo yum install yum \u767b\u5f55\u540e\u590d\u5236 \u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u9700\u8981\u8f93\u5165root\u5bc6\u7801\u3002 \u6b65\u9aa43\uff1a\u9a8c\u8bc1\u5b89\u88c5\u7ed3\u679c \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u9700\u8981\u9a8c\u8bc1\u662f\u5426\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5Yum\u662f\u5426\u5df2\u7ecf\u6210\u529f\u5b89\u88c5\uff1a yum &#8211;version \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u5982\u679c\u7ec8\u7aef\u80fd\u591f\u6b63\u786e\u5730\u663e\u793a\u51faYum\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8868\u793a\u5df2\u7ecf\u6210\u529f\u5b89\u88c5Yum\u3002 \u603b\u7ed3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-19076","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=19076"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19076\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}