{"id":165,"date":"2018-01-31T19:00:51","date_gmt":"2018-01-31T11:00:51","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=165"},"modified":"2018-01-31T19:00:51","modified_gmt":"2018-01-31T11:00:51","slug":"centos-7-hold-package","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/centos-7-hold-package.html","title":{"rendered":"CentOS 7\u7cfb\u7edfhold\u5305\u4e0d\u5141\u8bb8\u5347\u7ea7"},"content":{"rendered":"<p>\u51fa\u4e8e\u67d0\u4e9b\u539f\u56e0\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5c06\u67d0\u4e9b\u5305\u9501\u5b9a\uff0c\u4ee5\u9632\u6b62\u5728\u66f4\u65b0\u7cfb\u7edf\u7684\u65f6\u5019\uff0c\u67d0\u4e9b\u5305\u4e5f\u8ddf\u7740\u81ea\u52a8\u66f4\u65b0\u4e86\uff0c\u6bd4\u5982\u8bf4\u6211\u4eec\u81ea\u884c\u7f16\u8bd1\u7684Nginx\uff0c\u7531\u4e8e\u6dfb\u52a0\u4e86\u67d0\u4e9b\u7279\u6709\u6a21\u5757\uff0c\u5982\u679c\u5728\u66f4\u65b0\u7cfb\u7edf\u7684\u65f6\u5019\u81ea\u52a8\u66f4\u65b0\u4e86\u6e90\u91cc\u7684\u7248\u672c\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u51fa\u95ee\u9898\uff0c\u6240\u4ee5\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u628a\u5bf9\u5e94\u7684\u5305\u7ed9\u56fa\u5b9a\u4f4f\u3002<br \/>\n<!--more--><br \/>\nCentOS\u7cfb\u7edf\u9ed8\u8ba4\u4e0d\u5e26\u9501\u5b9a\u5305\u529f\u80fd\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5\u4e00\u4e2a<strong><em>yum<\/em><\/strong>\u63d2\u4ef6\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code>yum install yum-plugin-versionlock\n<\/code><\/pre>\n<p>\u5b89\u88c5\u597d\u4e4b\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u76f4\u63a5hold\u6211\u4eec\u9700\u8981\u9501\u5b9a\u7684\u5305\u4e86\uff0c\u6bd4\u5982\u8bf4\u6211\u4eec\u521a\u624d\u8bf4\u7684NGINX\uff1a<\/p>\n<pre><code>yum versionlock nginx\n<\/code><\/pre>\n<p>\u5f53\u7136\uff0c\u4f60\u4e5f\u53ef\u4ee5\u76f4\u63a5\u7f16\u8f91\u4e0b\u9762\u8fd9\u4e2a\u6587\u4ef6\uff1a<\/p>\n<pre><code>\/etc\/yum\/pluginconf.d\/versionlock.list\n<\/code><\/pre>\n<p>\u4f5c\u7528\u4e5f\u662f\u4e00\u6837\u7684\u3002<br \/>\n\u67e5\u770b\u88ab\u9501\u5b9a\u7684\u5305\uff1a<\/p>\n<pre><code>yum versionlock list\n<\/code><\/pre>\n<p>\u6e05\u7a7a\u88ab\u9501\u5b9a\u5217\u8868\uff1a<\/p>\n<pre><code>yum versionlock clear\n<\/code><\/pre>\n<p>\u9501\u5b9a\u8f6f\u4ef6\u5305\u4e4b\u540e\uff0c\u6211\u4eec\u518d\u6b21\u66f4\u65b0\u7cfb\u7edf\u7684\u65f6\u5019\u5c31\u4e0d\u4f1a\u66f4\u65b0\u88ab\u9501\u5b9a\u4e86\u7684\u5305\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u51fa\u4e8e\u67d0\u4e9b\u539f\u56e0\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5c06\u67d0\u4e9b\u5305\u9501\u5b9a\uff0c\u4ee5\u9632\u6b62\u5728\u66f4\u65b0\u7cfb\u7edf\u7684\u65f6\u5019\uff0c\u67d0\u4e9b\u5305\u4e5f\u8ddf\u7740\u81ea\u52a8\u66f4\u65b0\u4e86\uff0c\u6bd4\u5982\u8bf4\u6211\u4eec\u81ea\u884c\u7f16\u8bd1\u7684N &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/centos-7-hold-package.html\"> <span class=\"screen-reader-text\">CentOS 7\u7cfb\u7edfhold\u5305\u4e0d\u5141\u8bb8\u5347\u7ea7<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[182],"tags":[17],"class_list":["post-165","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}