{"id":107742,"date":"2026-09-20T08:16:39","date_gmt":"2026-09-20T00:16:39","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/107742.html"},"modified":"2026-09-20T08:16:39","modified_gmt":"2026-09-20T00:16:39","slug":"linux%e8%bf%90%e7%bb%b4%e7%ac%94%e8%ae%b0%ef%bc%9arpm%e5%ba%95%e5%b1%82%e6%9f%a5%e8%af%a2%e6%a0%a1%e9%aa%8c%e3%80%81yum%e5%8c%85%e7%ae%a1%e7%90%86%e3%80%81yum%e4%bb%93%e5%ba%93%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/107742.html","title":{"rendered":"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1arpm\u5e95\u5c42\u67e5\u8be2\u6821\u9a8c\u3001yum\u5305\u7ba1\u7406\u3001yum\u4ed3\u5e93\u914d\u7f6e\u8be6\u89e3"},"content":{"rendered":"<h2>Linux\u8f6f\u4ef6\u5305\u7ba1\u7406&#xff08;rpm\/yum&#xff09;\u5b9e\u6218\u7b14\u8bb0<\/h2>\n<p>\u6458\u8981&#xff1a;\u8bb2\u89e3CentOS7\u5e95\u5c42rpm\u8f6f\u4ef6\u5305\u5de5\u5177&#xff0c;\u67e5\u8be2\u3001\u6821\u9a8c\u3001\u5b89\u88c5\u5378\u8f7d&#xff1b;yum\u5305\u7ba1\u7406\u5668\u5b8c\u6574\u7528\u6cd5&#xff0c;\u8f6f\u4ef6\u5305\u67e5\u8be2\u3001\u5b89\u88c5\u3001\u964d\u7ea7\u3001\u5378\u8f7d\u3001yum\u4e8b\u52a1\u5386\u53f2\u3001\u8f6f\u4ef6\u5305\u7ec4\u7ba1\u7406&#xff1b;yum\u4ed3\u5e93\u914d\u7f6e&#xff0c;\u624b\u52a8\u5199repo\u6587\u4ef6\u3001yum\u2011config\u2011manager\u5de5\u5177&#xff1b;\u7b80\u5355\u4ecb\u7ecd\u6e90\u7801\u5b89\u88c5\u3001\u81ea\u5efa\u672c\u5730\u4ed3\u5e93\u3001\u540c\u6b65\u8fdc\u7a0b\u4ed3\u5e93\u3002<\/p>\n<h2>\u4e00\u3001rpm\u5e95\u5c42\u5305\u7ba1\u7406\u5668<\/h2>\n<p>rpm&#xff1a;RedHat Package Manager&#xff0c;\u7ea2\u5e3d\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u3002\u53ea\u5904\u7406\u672c\u5730rpm\u5305&#xff0c;\u4e0d\u4f1a\u81ea\u52a8\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n<h3>rpm\u67e5\u8be2 -q<\/h3>\n<table>\n<tr>\u53c2\u6570\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>-q<\/td>\n<td>\u67e5\u8be2\u5355\u4e2a\u5305\u662f\u5426\u5df2\u7ecf\u5b89\u88c5<\/td>\n<\/tr>\n<tr>\n<td>-qa<\/td>\n<td>\u67e5\u8be2\u672c\u673a\u5168\u90e8\u5df2\u7ecf\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/td>\n<\/tr>\n<tr>\n<td>-qi<\/td>\n<td>\u67e5\u770b\u8f6f\u4ef6\u5305\u4fe1\u606f&#xff1a;\u7248\u672c\u3001\u7248\u6743\u3001\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td>-ql<\/td>\n<td>\u5217\u51fa\u8be5rpm\u5305\u91ca\u653e\u5230\u7cfb\u7edf\u7684\u5168\u90e8\u6587\u4ef6\u8def\u5f84<\/td>\n<\/tr>\n<tr>\n<td>-qf<\/td>\n<td>\u53cd\u67e5&#xff1a;\u67d0\u4e2a\u6587\u4ef6\u6765\u81ea\u54ea\u4e00\u4e2arpm\u8f6f\u4ef6\u5305<\/td>\n<\/tr>\n<tr>\n<td>-qR<\/td>\n<td>\u67e5\u770b\u8f6f\u4ef6\u6240\u4f9d\u8d56\u7684\u5e93\u3001\u7a0b\u5e8f<\/td>\n<\/tr>\n<tr>\n<td>-qc<\/td>\n<td>\u53ea\u5217\u51fa\u8be5\u5305\u7684\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>-qd<\/td>\n<td>\u53ea\u5217\u51fa\u5e2e\u52a9\u6587\u6863<\/td>\n<\/tr>\n<tr>\n<td>-q &#8211;scripts<\/td>\n<td>\u67e5\u770brpm\u5305\u9884\u5b89\u88c5\/\u5378\u8f7d\u811a\u672c<\/td>\n<\/tr>\n<tr>\n<td>-qp<\/td>\n<td>\u67e5\u8be2\u672a\u5b89\u88c5\u7684\u672c\u5730rpm\u6587\u4ef6\u7684\u4fe1\u606f&#xff0c;\u642d\u914di\/l\/c\/d\u4f7f\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span class=\"token comment\">#\u67e5\u8be2\u662f\u5426\u5b89\u88c5openssh<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-q<\/span> openssh<\/p>\n<p><span class=\"token comment\">#\u5217\u51fa\u672c\u673a\u6240\u6709\u5df2\u5b89\u88c5\u5305<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-qa<\/span><\/p>\n<p><span class=\"token comment\">#\u67e5\u770b\u8f6f\u4ef6\u63cf\u8ff0\u4fe1\u606f<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-qi<\/span> openssh<\/p>\n<p><span class=\"token comment\">#\u67e5\u770b\u5305\u751f\u6210\u7684\u5168\u90e8\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ql<\/span> openssh<\/p>\n<p><span class=\"token comment\">#\u53cd\u67e5\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e2arpm\u5305<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-qf<\/span> \/usr\/bin\/ssh-keygen<\/p>\n<p><span class=\"token comment\">#\u67e5\u770b\u8f6f\u4ef6\u4f9d\u8d56<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-qR<\/span> openssh<\/p>\n<p><span class=\"token comment\">#\u67e5\u770b\u914d\u7f6e\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-qc<\/span> openssh-server<\/p>\n<p><span class=\"token comment\">#\u67e5\u770b\u811a\u672c<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-q<\/span> <span class=\"token parameter variable\">&#8211;scripts<\/span> openssh-server<\/p>\n<h3>rpm\u6821\u9a8c -V<\/h3>\n<p>\u6821\u9a8c\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u6587\u4ef6&#xff1a;\u5bf9\u6bd4\u5b89\u88c5\u539f\u59cb\u8bb0\u5f55&#xff0c;\u68c0\u67e5\u6587\u4ef6\u5927\u5c0f\u3001MD5\u5185\u5bb9\u3001\u6743\u9650\u3001\u5c5e\u4e3b\u3001SELINUX\u4e0a\u4e0b\u6587\u662f\u5426\u88ab\u7be1\u6539\u3002\u65e0\u5f02\u5e38\u6ca1\u6709\u4efb\u4f55\u8f93\u51fa\u3002<\/p>\n<p><span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-V<\/span> openssh-server<\/p>\n<p>\u8f93\u51fa\u6807\u8bb0\u8bf4\u660e&#xff1a;<\/p>\n<table>\n<tr>\u6807\u8bb0\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>S<\/td>\n<td>\u6587\u4ef6\u5927\u5c0fSize\u53d1\u751f\u53d8\u5316<\/td>\n<\/tr>\n<tr>\n<td>M<\/td>\n<td>\u6587\u4ef6\u6743\u9650\/\u6587\u4ef6\u7c7b\u578bMode\u6539\u52a8<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>MD5\u6821\u9a8c\u503c&#xff0c;\u6587\u4ef6\u5185\u5bb9\u88ab\u4fee\u6539<\/td>\n<\/tr>\n<tr>\n<td>D<\/td>\n<td>\u8bbe\u5907\u53f7\u53d8\u66f4<\/td>\n<\/tr>\n<tr>\n<td>L<\/td>\n<td>\u8f6f\u94fe\u63a5Link\u6539\u52a8<\/td>\n<\/tr>\n<tr>\n<td>U<\/td>\n<td>\u5c5e\u4e3bUser\u6539\u53d8<\/td>\n<\/tr>\n<tr>\n<td>G<\/td>\n<td>\u5c5e\u7ec4Group\u6539\u53d8<\/td>\n<\/tr>\n<tr>\n<td>T<\/td>\n<td>\u6587\u4ef6\u4fee\u6539\u65f6\u95f4mTime\u6539\u53d8<\/td>\n<\/tr>\n<tr>\n<td>P<\/td>\n<td>\u80fd\u529bcapabilities\u53d8\u5316<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u63d0\u793a&#xff1a;\u8f93\u51fa\u5e26c\u6807\u8bb0\u4ee3\u8868\u662f\u914d\u7f6e\u6587\u4ef6&#xff0c;\u4eba\u4e3a\u4fee\u6539\u5c5e\u4e8e\u6b63\u5e38\u73b0\u8c61\u3002<br \/>\n\u793a\u4f8b\u8f93\u51fa&#xff1a;S.5&#8230;.T.  c \/etc\/ssh\/sshd_config<\/p>\n<h3>rpm\u5b89\u88c5\u3001\u5378\u8f7d<\/h3>\n<p><span class=\"token comment\">#\u5b89\u88c5\u672c\u5730rpm\u5305&#xff1b;-i\u5b89\u88c5&#xff0c;-v\u8be6\u7ec6&#xff0c;-h\u6253\u5370\u8fdb\u5ea6\u6761<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span> nginx-1.20.1-10.el7.x86_64.rpm<\/p>\n<p><span class=\"token comment\">#\u5378\u8f7d\u8f6f\u4ef6\u5305&#xff08;\u53ea\u5199\u5305\u540d&#xff0c;\u4e0d\u8981\u5199rpm\u540e\u7f00&#xff09;<\/span><br \/>\n<span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-e<\/span> nginx<\/p>\n<p>\u26a0\ufe0frpm\u7f3a\u70b9&#xff1a;\u4e0d\u4f1a\u81ea\u52a8\u5904\u7406\u4f9d\u8d56&#xff0c;\u7f3a\u4f9d\u8d56\u76f4\u63a5\u62a5\u9519&#xff0c;\u6240\u4ee5\u751f\u4ea7\u4f18\u5148\u4f7f\u7528yum\u3002<\/p>\n<h2>\u4e8c\u3001yum\u5305\u7ba1\u7406\u5668<\/h2>\n<p>yum\u57fa\u4e8erpm&#xff0c;\u81ea\u52a8\u4e0b\u8f7drpm\u5305\u3001\u81ea\u52a8\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb&#xff0c;CentOS7\u9ed8\u8ba4\u5305\u7ba1\u7406\u5668\u3002<\/p>\n<h3>1\u3001info \u67e5\u770b\u4ed3\u5e93\u8f6f\u4ef6\u4fe1\u606f<\/h3>\n<p>yum info httpd<\/p>\n<h3>2\u3001list \u67e5\u8be2\u8f6f\u4ef6\u5305\u6e05\u5355<\/h3>\n<table>\n<tr>\u53c2\u6570\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>list \u5305\u540d<\/td>\n<td>\u663e\u793a\u5df2\u5b89\u88c5\u3001\u4ed3\u5e93\u53ef\u5b89\u88c5\u7248\u672c<\/td>\n<\/tr>\n<tr>\n<td>list &#8211;showduplicates \u5305\u540d<\/td>\n<td>\u5217\u51fa\u4ed3\u5e93\u6240\u6709\u53ef\u7528\u7248\u672c<\/td>\n<\/tr>\n<tr>\n<td>list installed<\/td>\n<td>\u672c\u673a\u5df2\u7ecf\u5b89\u88c5\u7684\u5305<\/td>\n<\/tr>\n<tr>\n<td>list available<\/td>\n<td>\u4ed3\u5e93\u5b58\u5728&#xff0c;\u672c\u673a\u5c1a\u672a\u5b89\u88c5<\/td>\n<\/tr>\n<tr>\n<td>list extras<\/td>\n<td>\u672c\u673a\u5df2\u5b89\u88c5&#xff0c;\u4f46yum\u4ed3\u5e93\u4e0d\u5b58\u5728\u7684\u5305&#xff08;\u624b\u52a8rpm\u5b89\u88c5&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>yum list openssh<br \/>\nyum list <span class=\"token parameter variable\">&#8211;showduplicates<\/span> openssh<br \/>\nyum list installed <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> openssh<br \/>\nyum list available <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> nginx<\/p>\n<h3>3\u3001search \/ provides<\/h3>\n<p><span class=\"token comment\">#search \u6839\u636e\u8f6f\u4ef6\u540d\u5b57\u3001\u63cf\u8ff0\u641c\u7d22\u5305<\/span><br \/>\nyum search all <span class=\"token string\">&#039;web server&#039;<\/span><\/p>\n<p><span class=\"token comment\">#provides \u6839\u636e\u6587\u4ef6\u8def\u5f84&#xff0c;\u53cd\u5411\u67e5\u627e\u8be5\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e2a\u8f6f\u4ef6\u5305<\/span><br \/>\nyum provides \/etc\/ssh<\/p>\n<p>\u533a\u522b&#xff1a;search\u641c\u8f6f\u4ef6\u540d\u5b57\u63cf\u8ff0&#xff1b;provides\u901a\u8fc7\u7cfb\u7edf\u6587\u4ef6\u53cd\u63a8\u8f6f\u4ef6\u5305\u3002<\/p>\n<h3>4\u3001install \u5b89\u88c5\u8f6f\u4ef6<\/h3>\n<p><span class=\"token comment\"># -y\u81ea\u52a8\u786e\u8ba4\u4ea4\u4e92<\/span><br \/>\nyum <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> httpd<\/p>\n<p><span class=\"token comment\"># &#8211;downloadonly&#xff1a;\u53ea\u4e0b\u8f7d\u5305&#043;\u4f9d\u8d56&#xff0c;**\u4e0d\u5b89\u88c5**&#xff0c;\u5305\u7f13\u5b58\u5230\/var\/cache\/yum<\/span><br \/>\nyum <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">&#8211;downloadonly<\/span> httpd<\/p>\n<h3>5\u3001localinstall \u5b89\u88c5\u672c\u5730rpm\u5305&#xff0c;\u81ea\u52a8\u89e3\u51b3\u7f51\u7edc\u4f9d\u8d56<\/h3>\n<p>\u9002\u5408\u672c\u5730\u4e0b\u8f7d\u597drpm&#xff0c;\u4f46\u7f3a\u5c11\u4f9d\u8d56&#xff0c;yum\u81ea\u52a8\u4ece\u4ed3\u5e93\u62c9\u4f9d\u8d56\u5b89\u88c5\u3002<\/p>\n<p>yum localinstall nginx-1.20.1-10.el7.x86_64.rpm<\/p>\n<h3>6\u3001downgrade \u8f6f\u4ef6\u7248\u672c\u964d\u7ea7<\/h3>\n<p>\u964d\u7ea7\u8f6f\u4ef6&#xff0c;\u90e8\u5206\u4f9d\u8d56\u9700\u8981\u540c\u6b65\u964d\u7ea7&#xff0c;\u5426\u5219\u62a5\u9519\u3002<\/p>\n<p>yum downgrade <span class=\"token parameter variable\">-y<\/span> httpd-2.4.6-97.el7.centos<\/p>\n<h3>7\u3001update \u5347\u7ea7\u8f6f\u4ef6<\/h3>\n<p><span class=\"token comment\">#\u5168\u90e8\u8f6f\u4ef6\u5347\u7ea7\u5230\u6700\u65b0<\/span><br \/>\nyum update <span class=\"token parameter variable\">-y<\/span><\/p>\n<p><span class=\"token comment\">#\u53ea\u5347\u7ea7\u6307\u5b9a\u8f6f\u4ef6<\/span><br \/>\nyum update vsftpd<\/p>\n<h3>8\u3001remove \u5378\u8f7d\u8f6f\u4ef6<\/h3>\n<p>yum remove&#xff1a;\u5378\u8f7d\u8f6f\u4ef6&#xff0c;\u540c\u65f6\u6e05\u7406\u6ca1\u6709\u88ab\u5176\u4ed6\u8f6f\u4ef6\u4f9d\u8d56\u7684\u5b64\u513f\u4f9d\u8d56\u5305\u3002<br \/>\nrpm -e&#xff1a;\u53ea\u5378\u8f7d\u6307\u5b9a\u5305&#xff0c;\u4e0d\u5904\u7406\u4f9d\u8d56&#xff0c;\u88ab\u522b\u7684\u5305\u4f9d\u8d56\u4f1a\u76f4\u63a5\u62a5\u9519\u3002<\/p>\n<p>yum remove <span class=\"token parameter variable\">-y<\/span> nginx<\/p>\n<h3>9\u3001yum history \u4e8b\u52a1\u5386\u53f2&#xff08;\u91cd\u8981\u6392\u9519&#xff09;<\/h3>\n<p>yum\u6bcf\u4e00\u6b21\u5b89\u88c5\/\u5378\u8f7d\/\u964d\u7ea7\u90fd\u8bb0\u5f55\u4e8b\u52a1ID&#xff0c;\u53ef\u4ee5\u56de\u6eda\u64cd\u4f5c\u3002<\/p>\n<p><span class=\"token comment\">#\u67e5\u770byum\u64cd\u4f5c\u5386\u53f2<\/span><br \/>\nyum <span class=\"token function\">history<\/span> list<\/p>\n<p><span class=\"token comment\">#\u67e5\u770bID&#061;4\u4e8b\u52a1\u7684\u8be6\u7ec6\u64cd\u4f5c<\/span><br \/>\nyum <span class=\"token function\">history<\/span> info <span class=\"token number\">4<\/span><\/p>\n<p><span class=\"token comment\">#undo&#xff1a;\u56de\u6eda\u8be5\u4e8b\u52a1&#xff08;\u5b89\u88c5\u5c31\u5378\u8f7d&#xff0c;\u5378\u8f7d\u5c31\u5b89\u88c5\u56de\u6765&#xff09;<\/span><br \/>\nyum <span class=\"token function\">history<\/span> undo <span class=\"token number\">4<\/span><\/p>\n<p><span class=\"token comment\">#redo&#xff1a;\u91cd\u505a\u8be5\u4e8b\u52a1<\/span><br \/>\nyum <span class=\"token function\">history<\/span> redo <span class=\"token number\">4<\/span><\/p>\n<h3>10\u3001\u8f6f\u4ef6\u5305\u7ec4\u7ba1\u7406<\/h3>\n<p>\u628a\u591a\u4e2a\u76f8\u5173\u8f6f\u4ef6\u6253\u5305\u6210\u8f6f\u4ef6\u7ec4&#xff0c;\u4e00\u6b21\u6027\u6279\u91cf\u5b89\u88c5\u3002<\/p>\n<p><span class=\"token comment\">#\u5217\u51fa\u6240\u6709\u5305\u7ec4<\/span><br \/>\nyum grouplist<\/p>\n<p><span class=\"token comment\">#\u67e5\u770b\u5305\u7ec4\u91cc\u9762\u5305\u542b\u54ea\u4e9b\u8f6f\u4ef6<\/span><br \/>\nyum groupinfo <span class=\"token string\">&#034;Development Tools&#034;<\/span><\/p>\n<p><span class=\"token comment\">#\u5b89\u88c5\u8f6f\u4ef6\u5305\u7ec4<\/span><br \/>\nyum groupinstall <span class=\"token parameter variable\">-y<\/span> <span class=\"token string\">&#034;Development Tools&#034;<\/span><\/p>\n<p><span class=\"token comment\">#\u5347\u7ea7\u5305\u7ec4<\/span><br \/>\nyum groupupdate <span class=\"token string\">&#034;Development Tools&#034;<\/span><\/p>\n<p><span class=\"token comment\">#\u5378\u8f7d\u5305\u7ec4<\/span><br \/>\nyum groupremove <span class=\"token string\">&#034;Development Tools&#034;<\/span><\/p>\n<p><span class=\"token comment\">#\u53ea\u505a\u6807\u8bb0&#xff0c;\u4e0d\u5b9e\u9645\u5b89\u88c5\u8f6f\u4ef6<\/span><br \/>\nyum <span class=\"token function\">groups<\/span> mark <span class=\"token function\">install<\/span> <span class=\"token string\">&#034;\u5305\u7ec4\u540d&#034;<\/span><\/p>\n<h2>\u4e09\u3001YUM\u4ed3\u5e93\u914d\u7f6e<\/h2>\n<p>repo\u6587\u4ef6\u5b58\u653e\u76ee\u5f55&#xff1a;\/etc\/yum.repos.d\/*.repo<br \/>\n\/etc\/yum.conf\u662fyum\u5168\u5c40\u4e3b\u914d\u7f6e\u3002<\/p>\n<h3>repo\u914d\u7f6e\u6587\u4ef6\u5b57\u6bb5\u8bf4\u660e<\/h3>\n<p>[epel]                  #\u4ed3\u5e93ID&#xff0c;\u4e0d\u80fd\u6709\u7a7a\u683c<br \/>\nname&#061;Extra Packages for Enterprise Linux 7   #\u4ed3\u5e93\u63cf\u8ff0\u540d\u5b57<br \/>\nbaseurl&#061;https:\/\/mirrors.aliyun.com\/epel\/7\/x86_64\/   #\u8f6f\u4ef6\u5305\u6e90\u5730\u5740<br \/>\nenabled&#061;1               #1\u542f\u7528\u4ed3\u5e93&#xff0c;0\u5173\u95ed<br \/>\ngpgcheck&#061;1              #\u5f00\u542frpm\u5305\u7b7e\u540d\u6821\u9a8c&#xff0c;\u9632\u6b62\u7be1\u6539<br \/>\ngpgkey&#061;https:\/\/mirrors.aliyun.com\/epel\/RPM-GPG-KEY-EPEL-7  #\u7b7e\u540d\u516c\u94a5\u5730\u5740<\/p>\n<h3>yum\u2011config\u2011manager\u5de5\u5177&#xff08;\u9700\u8981yum\u2011utils&#xff09;<\/h3>\n<p><span class=\"token comment\">#\u5b89\u88c5\u5de5\u5177<\/span><br \/>\nyum <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> yum-utils<\/p>\n<p><span class=\"token comment\">#\u67e5\u770b\u5168\u90e8\u4ed3\u5e93\u5b8c\u6574\u914d\u7f6e<\/span><br \/>\nyum-config-manager<\/p>\n<p><span class=\"token comment\">#\u6c38\u4e45\u542f\u7528\u4ed3\u5e93<\/span><br \/>\nyum-config-manager <span class=\"token parameter variable\">&#8211;enable<\/span> epel<\/p>\n<p><span class=\"token comment\">#\u6c38\u4e45\u7981\u7528\u4ed3\u5e93<\/span><br \/>\nyum-config-manager <span class=\"token parameter variable\">&#8211;disable<\/span> epel<\/p>\n<p><span class=\"token comment\">#\u6dfb\u52a0\u8fdc\u7aefrepo\u4ed3\u5e93\u6587\u4ef6<\/span><br \/>\nyum-config-manager &#8211;add-repo<span class=\"token operator\">&#061;<\/span>https:\/\/mirrors.aliyun.com\/kubernetes\/yum\/repos\/kubernetes-el7-x86_64\/<\/p>\n<p>\u6ce8\u610f&#xff1a;&#8211;add\u2011repo\u53ea\u4e0b\u8f7drepo\u914d\u7f6e&#xff0c;\u4e0d\u4f1a\u81ea\u52a8\u5bfc\u5165gpg\u516c\u94a5&#xff0c;gpgcheck&#061;1\u4f1a\u51fa\u73b0\u7b7e\u540d\u62a5\u9519\u3002<\/p>\n<h3>\u4ed3\u5e93\u7f13\u5b58\u7ba1\u7406<\/h3>\n<p>yum clean all          <span class=\"token comment\">#\u6e05\u7a7a\u5143\u6570\u636e\u7f13\u5b58 &#043; \u5df2\u7ecf\u4e0b\u8f7drpm\u5305<\/span><br \/>\nyum clean metadata     <span class=\"token comment\">#\u53ea\u6e05\u7406\u4ed3\u5e93\u5143\u6570\u636e\u7f13\u5b58&#xff08;\u5e38\u7528&#xff09;<\/span><br \/>\nyum clean packages     <span class=\"token comment\">#\u53ea\u6e05\u7406\u4e0b\u8f7d\u7684rpm\u5b89\u88c5\u5305<\/span><\/p>\n<p>yum makecache          <span class=\"token comment\">#\u8054\u7f51\u91cd\u65b0\u62c9\u53d6\u4ed3\u5e93\u5305\u6e05\u5355&#xff0c;\u751f\u6210\u672c\u5730\u7f13\u5b58<\/span><\/p>\n<h3>repolist\u67e5\u770b\u4ed3\u5e93\u72b6\u6001<\/h3>\n<p>yum repolist             <span class=\"token comment\">#\u53ea\u770b\u542f\u7528\u7684\u4ed3\u5e93<\/span><br \/>\nyum repolist all         <span class=\"token comment\">#\u67e5\u770b\u542f\u7528&#043;\u7981\u7528\u5168\u90e8\u4ed3\u5e93<\/span><\/p>\n<h2>\u56db\u3001\u62d3\u5c55&#xff1a;\u6e90\u7801\u5b89\u88c5\u3001\u81ea\u5efayum\u4ed3\u5e93\u3001\u540c\u6b65\u4ed3\u5e93<\/h2>\n<h3>1.\u6e90\u7801\u5b89\u88c5\u4e09\u6b65\u66f2<\/h3>\n<p>\u6e90\u7801\u8f6f\u4ef6\u4e00\u822c.tar.gz\u538b\u7f29\u5305&#xff1b;\u9700\u8981\u63d0\u524d\u5b89\u88c5\u5f00\u53d1\u5de5\u5177\u5305\u7ec4Development Tools<\/p>\n<li>.\/configure \u68c0\u6d4b\u7cfb\u7edf\u73af\u5883&#xff0c;\u751f\u6210Makefile\u7f16\u8bd1\u6587\u4ef6&#xff0c;\u53ef\u4ee5\u6307\u5b9a\u5b89\u88c5\u8def\u5f84<\/li>\n<li>make \u7f16\u8bd1\u6e90\u4ee3\u7801<\/li>\n<li>make install \u590d\u5236\u7f16\u8bd1\u597d\u7684\u7a0b\u5e8f\u5230\u7cfb\u7edf\u76ee\u5f55<\/li>\n<p>\u7f3a\u70b9&#xff1a;yum\/rpm\u65e0\u6cd5\u7ba1\u7406\u6e90\u7801\u5b89\u88c5\u8f6f\u4ef6&#xff0c;\u5378\u8f7d\u9ebb\u70e6&#xff0c;\u4e0d\u4fbf\u4e8e\u5347\u7ea7&#xff0c;\u751f\u4ea7\u73af\u5883\u4f18\u5148rpm\/yum\u3002<\/p>\n<h3>2\u3001\u81ea\u5efa\u672c\u5730yum\u4ed3\u5e93<\/h3>\n<p>\u9002\u7528\u573a\u666f&#xff1a;\u5185\u7f51\u670d\u52a1\u5668\u4e0d\u80fd\u8054\u7f51&#xff0c;\u672c\u5730\u76ee\u5f55\u5b58\u653e\u4e00\u5806rpm\u5305&#xff0c;\u505a\u6210\u672c\u5730yum\u6e90\u3002<\/p>\n<li>\u521b\u5efa\u5b58\u653erpm\u5305\u76ee\u5f55&#xff0c;\u653e\u5165\u5168\u90e8rpm\u5305<\/li>\n<li>\u5b89\u88c5createrepo\u5de5\u5177<\/li>\n<li>createrepo \u76ee\u5f55\u751f\u6210repodata\u4ed3\u5e93\u5143\u6570\u636e<\/li>\n<li>\u65b0\u5efa.repo\u6587\u4ef6&#xff0c;baseurl\u6307\u5411\u672c\u5730\u76ee\u5f55file:\/\/\/xxx\/xxx&#xff0c;gpgcheck&#061;0\u3002<\/li>\n<h3>3\u3001\u540c\u6b65\u5916\u7f51yum\u4ed3\u5e93\u5230\u672c\u5730<\/h3>\n<p>\u5de5\u5177&#xff1a;reposync&#xff08;\u6765\u81eayum\u2011utils&#xff09;<\/p>\n<ul>\n<li>reposync&#xff1a;\u628a\u8fdc\u7a0byum\u4ed3\u5e93\u5168\u90e8rpm\u5305\u4e0b\u8f7d\u5230\u672c\u5730\u78c1\u76d8&#xff1b;\u914d\u5408createrepo\u5373\u53ef\u505a\u6210\u5185\u7f51\u79bb\u7ebf\u6e90\u3002<\/li>\n<\/ul>\n<h2>\u907f\u5751\u603b\u7ed3<\/h2>\n<li>rpm\u53ea\u5904\u7406\u672c\u5730\u5305&#xff0c;\u4e0d\u4f1a\u81ea\u52a8\u89e3\u51b3\u4f9d\u8d56&#xff1b;\u751f\u4ea7\u4f18\u5148yum\u3002<\/li>\n<li>rpm -V\u6821\u9a8c\u8f6f\u4ef6\u662f\u5426\u88ab\u7be1\u6539&#xff1b;\u5e26c\u6807\u8bb0\u662f\u914d\u7f6e\u6587\u4ef6\u4fee\u6539&#xff0c;\u5c5e\u4e8e\u6b63\u5e38\u3002<\/li>\n<li>yum remove\u4f1a\u6e05\u7406\u5b64\u513f\u4f9d\u8d56&#xff1b;rpm -e\u53ea\u5220\u6307\u5b9a\u5305&#xff0c;\u4e0d\u5904\u7406\u4f9d\u8d56\u3002<\/li>\n<li>yum history undo\u53ef\u4ee5\u56de\u6eda\u5b89\u88c5\u5378\u8f7d\u4e8b\u52a1&#xff0c;\u6392\u9519\u975e\u5e38\u597d\u7528\u3002<\/li>\n<li>repo\u6587\u4ef6enabled&#061;1\/0\u63a7\u5236\u4ed3\u5e93\u5f00\u5173&#xff1b;gpgcheck&#061;1\u5f00\u542f\u5305\u7b7e\u540d\u5b89\u5168\u6821\u9a8c\u3002<\/li>\n<li>\u6e90\u7801\u5b89\u88c5\u4e0d\u53d7rpm\u6570\u636e\u5e93\u7ba1\u7406&#xff0c;\u5378\u8f7d\u5347\u7ea7\u9ebb\u70e6&#xff0c;\u4f01\u4e1a\u5c3d\u91cf\u5c11\u7528\u3002<\/li>\n<h2>\u9762\u8bd5\u901f\u8bb0\u5c0f\u7ed3<\/h2>\n<li>rpm&#xff1a;\u5e95\u5c42\u5305\u5de5\u5177&#xff0c;\u67e5\u8be2\u2011q\u3001\u6821\u9a8c\u2011V\u3001\u5b89\u88c5\u2011i\u3001\u5378\u8f7d\u2011e&#xff0c;\u65e0\u4f9d\u8d56\u81ea\u52a8\u5904\u7406\u3002<\/li>\n<li>yum&#xff1a;\u81ea\u52a8\u89e3\u51b3\u4f9d\u8d56&#xff1b;install\u5b89\u88c5\u3001remove\u5378\u8f7d\u3001downgrade\u964d\u7ea7\u3001history undo\u56de\u6eda\u4e8b\u52a1\u3002<\/li>\n<li>repo\u4ed3\u5e93\u914d\u7f6e\u6587\u4ef6&#xff1a;\/etc\/yum.repos.d\/*.repo&#xff0c;\u5b57\u6bb5[id] name baseurl enabled gpgcheck gpgkey\u3002<\/li>\n<li>\u7f13\u5b58&#xff1a;yum clean metadata &amp;&amp; yum makecache\u5237\u65b0\u4ed3\u5e93\u5143\u6570\u636e\u3002<\/li>\n<li>\u6e90\u7801\u5b89\u88c5&#xff1a;configure \u2192 make \u2192 make install&#xff0c;\u7f3a\u70b9\u5305\u7ba1\u7406\u5668\u65e0\u6cd5\u7ba1\u7406\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u8f6f\u4ef6\u5305\u7ba1\u7406&#xff08;rpm\/yum&#xff09;\u5b9e\u6218\u7b14\u8bb0<br \/>\n\u6458\u8981&#xff1a;\u8bb2\u89e3CentOS7\u5e95\u5c42rpm\u8f6f\u4ef6\u5305\u5de5\u5177&#xff0c;\u67e5\u8be2\u3001\u6821\u9a8c\u3001\u5b89\u88c5\u5378\u8f7d&#xff1b;yum\u5305\u7ba1\u7406\u5668\u5b8c\u6574\u7528\u6cd5&#xff0c;\u8f6f\u4ef6\u5305\u67e5\u8be2\u3001\u5b89\u88c5\u3001\u964d\u7ea7\u3001\u5378\u8f7d\u3001yum\u4e8b\u52a1\u5386\u53f2\u3001\u8f6f\u4ef6\u5305\u7ec4\u7ba1\u7406&#xff1b;yum\u4ed3\u5e93\u914d\u7f6e&#xff0c;\u624b\u52a8\u5199repo\u6587\u4ef6\u3001yum\u2011config\u2011manager\u5de5\u5177&#xff1b;\u7b80\u5355\u4ecb\u7ecd\u6e90\u7801\u5b89\u88c5\u3001\u81ea\u5efa\u672c\u5730\u4ed3\u5e93\u3001\u540c\u6b65\u8fdc\u7a0b\u4ed3\u5e93\u3002<br \/>\n\u4e00\u3001rpm\u5e95\u5c42\u5305\u7ba1\u7406\u5668rpm<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,44],"topic":[],"class_list":["post-107742","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1arpm\u5e95\u5c42\u67e5\u8be2\u6821\u9a8c\u3001yum\u5305\u7ba1\u7406\u3001yum\u4ed3\u5e93\u914d\u7f6e\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/107742.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1arpm\u5e95\u5c42\u67e5\u8be2\u6821\u9a8c\u3001yum\u5305\u7ba1\u7406\u3001yum\u4ed3\u5e93\u914d\u7f6e\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Linux\u8f6f\u4ef6\u5305\u7ba1\u7406&#xff08;rpm\/yum&#xff09;\u5b9e\u6218\u7b14\u8bb0 \u6458\u8981&#xff1a;\u8bb2\u89e3CentOS7\u5e95\u5c42rpm\u8f6f\u4ef6\u5305\u5de5\u5177&#xff0c;\u67e5\u8be2\u3001\u6821\u9a8c\u3001\u5b89\u88c5\u5378\u8f7d&#xff1b;yum\u5305\u7ba1\u7406\u5668\u5b8c\u6574\u7528\u6cd5&#xff0c;\u8f6f\u4ef6\u5305\u67e5\u8be2\u3001\u5b89\u88c5\u3001\u964d\u7ea7\u3001\u5378\u8f7d\u3001yum\u4e8b\u52a1\u5386\u53f2\u3001\u8f6f\u4ef6\u5305\u7ec4\u7ba1\u7406&#xff1b;yum\u4ed3\u5e93\u914d\u7f6e&#xff0c;\u624b\u52a8\u5199repo\u6587\u4ef6\u3001yum\u2011config\u2011manager\u5de5\u5177&#xff1b;\u7b80\u5355\u4ecb\u7ecd\u6e90\u7801\u5b89\u88c5\u3001\u81ea\u5efa\u672c\u5730\u4ed3\u5e93\u3001\u540c\u6b65\u8fdc\u7a0b\u4ed3\u5e93\u3002 \u4e00\u3001rpm\u5e95\u5c42\u5305\u7ba1\u7406\u5668rpm\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/107742.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-20T00:16:39+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107742.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/107742.html\",\"name\":\"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1arpm\u5e95\u5c42\u67e5\u8be2\u6821\u9a8c\u3001yum\u5305\u7ba1\u7406\u3001yum\u4ed3\u5e93\u914d\u7f6e\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-20T00:16:39+00:00\",\"dateModified\":\"2026-09-20T00:16:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/107742.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/107742.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107742.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1arpm\u5e95\u5c42\u67e5\u8be2\u6821\u9a8c\u3001yum\u5305\u7ba1\u7406\u3001yum\u4ed3\u5e93\u914d\u7f6e\u8be6\u89e3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1arpm\u5e95\u5c42\u67e5\u8be2\u6821\u9a8c\u3001yum\u5305\u7ba1\u7406\u3001yum\u4ed3\u5e93\u914d\u7f6e\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/107742.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1arpm\u5e95\u5c42\u67e5\u8be2\u6821\u9a8c\u3001yum\u5305\u7ba1\u7406\u3001yum\u4ed3\u5e93\u914d\u7f6e\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Linux\u8f6f\u4ef6\u5305\u7ba1\u7406&#xff08;rpm\/yum&#xff09;\u5b9e\u6218\u7b14\u8bb0 \u6458\u8981&#xff1a;\u8bb2\u89e3CentOS7\u5e95\u5c42rpm\u8f6f\u4ef6\u5305\u5de5\u5177&#xff0c;\u67e5\u8be2\u3001\u6821\u9a8c\u3001\u5b89\u88c5\u5378\u8f7d&#xff1b;yum\u5305\u7ba1\u7406\u5668\u5b8c\u6574\u7528\u6cd5&#xff0c;\u8f6f\u4ef6\u5305\u67e5\u8be2\u3001\u5b89\u88c5\u3001\u964d\u7ea7\u3001\u5378\u8f7d\u3001yum\u4e8b\u52a1\u5386\u53f2\u3001\u8f6f\u4ef6\u5305\u7ec4\u7ba1\u7406&#xff1b;yum\u4ed3\u5e93\u914d\u7f6e&#xff0c;\u624b\u52a8\u5199repo\u6587\u4ef6\u3001yum\u2011config\u2011manager\u5de5\u5177&#xff1b;\u7b80\u5355\u4ecb\u7ecd\u6e90\u7801\u5b89\u88c5\u3001\u81ea\u5efa\u672c\u5730\u4ed3\u5e93\u3001\u540c\u6b65\u8fdc\u7a0b\u4ed3\u5e93\u3002 \u4e00\u3001rpm\u5e95\u5c42\u5305\u7ba1\u7406\u5668rpm","og_url":"https:\/\/www.wsisp.com\/helps\/107742.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-20T00:16:39+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/107742.html","url":"https:\/\/www.wsisp.com\/helps\/107742.html","name":"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1arpm\u5e95\u5c42\u67e5\u8be2\u6821\u9a8c\u3001yum\u5305\u7ba1\u7406\u3001yum\u4ed3\u5e93\u914d\u7f6e\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-20T00:16:39+00:00","dateModified":"2026-09-20T00:16:39+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/107742.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/107742.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/107742.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1arpm\u5e95\u5c42\u67e5\u8be2\u6821\u9a8c\u3001yum\u5305\u7ba1\u7406\u3001yum\u4ed3\u5e93\u914d\u7f6e\u8be6\u89e3"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=107742"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107742\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=107742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=107742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=107742"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=107742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}