{"id":2792,"date":"2016-08-06T23:08:31","date_gmt":"2016-08-06T15:08:31","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=2792"},"modified":"2016-08-06T23:08:31","modified_gmt":"2016-08-06T15:08:31","slug":"%e5%9c%a8centos%e4%b8%8a%e5%a6%82%e4%bd%95%e5%bc%ba%e5%88%b6%e5%8d%87%e7%ba%a7%e6%9f%90%e4%b8%80package","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/2792.html","title":{"rendered":"\u5728CentOS\u4e0a\u5982\u4f55\u5f3a\u5236\u5347\u7ea7\u67d0\u4e00package"},"content":{"rendered":"<p>=Start=<\/p>\n<h5>\u7f18\u7531\uff1a<\/h5>\n<p>\u7ed9CentOS\u4e0a\u7684\u67d0\u4e00package\u6253\u4e86\u4e00\u4e2apatch\uff0c\u5e76\u7528rpmbuild\u547d\u4ee4\u751f\u6210\u4e86\u4e00\u4e2aRPM\u5305\uff0c\u5e0c\u671b\u8fdb\u884c\u672c\u5730\u5b89\u88c5\u3001\u6d4b\u8bd5\u3002<\/p>\n<p>\u5728\u5b89\u88c5\u7684\u65f6\u5019\u9047\u5230\u4e86\u4e00\u4e9b\u95ee\u9898\uff0c\u5728\u6b64\u8bb0\u5f55\u4e00\u4e0b\uff0c\u65b9\u4fbf\u4ee5\u540e\u53c2\u8003\u3002<\/p>\n<h5>\u6b63\u6587\uff1a<\/h5>\n<h6>1.\u5982\u679c\u4e00\u4e2a\u540c\u540d&amp;\u540c\u7248\u672c\u53f7\u7684package\u5df2\u7ecf\u5b89\u88c5\u4e86\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u5f3a\u5236\u5b89\u88c5\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/cn.linux.vbird.org\/linux_basic\/0520rpm_and_srpm_2.php#rpmmanager_install\">http:\/\/cn.linux.vbird.org\/linux_basic\/0520rpm_and_srpm_2.php#rpmmanager_install<\/a><\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \"># rpm -ivh --replacepkgs package-4.2-34.el6.x86_64.rpm<\/pre>\n<h6>2.\u5982\u679c\u4f60\u9700\u8981\u5b89\u88c5\u4e00\u4e2a\u7248\u672c\u53f7\u8f83\u8001\u7684package\uff0c\u9700\u8981\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/h6>\n<ul>\n<li><a href=\"https:\/\/www.centos.org\/docs\/5\/html\/Deployment_Guide-en-US\/s1-rpm-using.html\" target=\"_blank\">https:\/\/www.centos.org\/docs\/5\/html\/Deployment_Guide-en-US\/s1-rpm-using.html<\/a><\/li>\n<li><a href=\"http:\/\/www.rpm.org\/max-rpm\/ch-rpm-upgrade.html\" target=\"_blank\">http:\/\/www.rpm.org\/max-rpm\/ch-rpm-upgrade.html<\/a><\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \"># rpm -Uvh --oldpackage package-4.2-34.el6.x86_64.rpm<\/pre>\n<h6>3.\u5176\u5b9e\u8fd8\u53ef\u4ee5\u4f7f\u7528 yum \u547d\u4ee4\u6765\u5b89\u88c5RPM\u5305(\u5c31\u4e0d\u9700\u8981\u8bb0\u5f55\u4e0a\u9762rpm\u547d\u4ee4\u7684\u51e0\u4e2a\u9009\u9879\u4e86)<\/h6>\n<pre class=\"lang:default decode:true \"># yum localinstall package-4.2-34.el6.x86_64.rpm<\/pre>\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u7ed9CentOS\u4e0a\u7684\u67d0\u4e00package\u6253\u4e86\u4e00\u4e2apatch\uff0c\u5e76\u7528rpmbuild\u547d\u4ee4\u751f\u6210\u4e86 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,11],"tags":[30,523,639],"class_list":["post-2792","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-linux","tag-linux","tag-rpm","tag-yum"],"views":7783,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=2792"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2792\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=2792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=2792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=2792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}