{"id":1462,"date":"2014-02-25T11:14:36","date_gmt":"2014-02-25T11:14:36","guid":{"rendered":"http:\/\/www.milesweb.com\/hosting-faqs\/?p=1462"},"modified":"2022-02-21T17:43:03","modified_gmt":"2022-02-21T12:13:03","slug":"prevent-yum-upgrading-rpms-centos-server","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/","title":{"rendered":"How To Prevent YUM From Upgrading RPM&#8217;s On CentOS Server?"},"content":{"rendered":"<p>If you wish to update all packages except few RPM&#8217;s using YUM, you can achieve it permanently\/temporarily with steps below. Access your server via SSH as root user.<\/p>\n<p><strong>Permanently exclude the RPM<\/strong><\/p>\n<p>Use your favorite text editor to open the file \/etc\/yum.conf. <!--more--><\/p>\n<p><strong># vi \/etc\/yum.conf<\/strong><\/p>\n<p>Append\/modify exclude directive line under [main] section, enter:<\/p>\n<p><strong>exclude=php*<\/strong><\/p>\n<p>Here we will exclude the PHP RPM&#8217;s. You can replace PHP with the RPM you want to exclude from being updated.<\/p>\n<p>Save and close the file. Try, updating the system without updating the PHP.<\/p>\n<p><strong># yum update -y<\/strong><\/p>\n<p><strong>Temporarily exclude the RPM<\/strong><\/p>\n<p>Use the command below to skip update of RPM from command line.<\/p>\n<p><strong># yum -x &#8216;php*&#8217; update<\/strong><\/p>\n<p>Excluding the RPM&#8217;s using YUM can be done with our <a href=\"https:\/\/www.milesweb.in\/hosting\/vps-hosting\/linux-vps-hosting\"><strong>Linux VPS hosting<\/strong><\/a><strong> packages<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you wish to update all packages except few RPM&#8217;s using YUM, you can achieve it permanently\/temporarily with steps below. Access your server via SSH as root user. Permanently exclude the RPM Use your favorite text editor to open the file \/etc\/yum.conf.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-1462","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Prevent YUM From Upgrading RPM&#039;s On CentOS Server?<\/title>\n<meta name=\"description\" content=\"If you wish to update all packages except few RPM\u2019s using YUM, you can achieve it permanently\/temporarily with steps below. Access your server via SSH as root user.\" \/>\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.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Prevent YUM From Upgrading RPM&#039;s On CentOS Server?\" \/>\n<meta property=\"og:description\" content=\"If you wish to update all packages except few RPM\u2019s using YUM, you can achieve it permanently\/temporarily with steps below. Access your server via SSH as root user.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-25T11:14:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-21T12:13:03+00:00\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/prevent-yum-upgrading-rpms-centos-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/prevent-yum-upgrading-rpms-centos-server\\\/\"},\"author\":{\"name\":\"Admin\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"headline\":\"How To Prevent YUM From Upgrading RPM&#8217;s On CentOS Server?\",\"datePublished\":\"2014-02-25T11:14:36+00:00\",\"dateModified\":\"2022-02-21T12:13:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/prevent-yum-upgrading-rpms-centos-server\\\/\"},\"wordCount\":145,\"commentCount\":0,\"articleSection\":[\"How-Tos\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/prevent-yum-upgrading-rpms-centos-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/prevent-yum-upgrading-rpms-centos-server\\\/\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/prevent-yum-upgrading-rpms-centos-server\\\/\",\"name\":\"How To Prevent YUM From Upgrading RPM's On CentOS Server?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#website\"},\"datePublished\":\"2014-02-25T11:14:36+00:00\",\"dateModified\":\"2022-02-21T12:13:03+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"description\":\"If you wish to update all packages except few RPM\u2019s using YUM, you can achieve it permanently\\\/temporarily with steps below. Access your server via SSH as root user.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/prevent-yum-upgrading-rpms-centos-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/prevent-yum-upgrading-rpms-centos-server\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/prevent-yum-upgrading-rpms-centos-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Prevent YUM From Upgrading RPM&#8217;s On CentOS Server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#website\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"contentUrl\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"caption\":\"Admin\"},\"description\":\"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Prevent YUM From Upgrading RPM's On CentOS Server?","description":"If you wish to update all packages except few RPM\u2019s using YUM, you can achieve it permanently\/temporarily with steps below. Access your server via SSH as root user.","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.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/","og_locale":"en_US","og_type":"article","og_title":"How To Prevent YUM From Upgrading RPM's On CentOS Server?","og_description":"If you wish to update all packages except few RPM\u2019s using YUM, you can achieve it permanently\/temporarily with steps below. Access your server via SSH as root user.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2014-02-25T11:14:36+00:00","article_modified_time":"2022-02-21T12:13:03+00:00","author":"Admin","twitter_misc":{"Written by":"Admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/"},"author":{"name":"Admin","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"headline":"How To Prevent YUM From Upgrading RPM&#8217;s On CentOS Server?","datePublished":"2014-02-25T11:14:36+00:00","dateModified":"2022-02-21T12:13:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/"},"wordCount":145,"commentCount":0,"articleSection":["How-Tos"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/","name":"How To Prevent YUM From Upgrading RPM's On CentOS Server?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2014-02-25T11:14:36+00:00","dateModified":"2022-02-21T12:13:03+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"description":"If you wish to update all packages except few RPM\u2019s using YUM, you can achieve it permanently\/temporarily with steps below. Access your server via SSH as root user.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/prevent-yum-upgrading-rpms-centos-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How To Prevent YUM From Upgrading RPM&#8217;s On CentOS Server?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","caption":"Admin"},"description":"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/1462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=1462"}],"version-history":[{"count":8,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/1462\/revisions"}],"predecessor-version":[{"id":16493,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/1462\/revisions\/16493"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=1462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=1462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=1462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}