{"id":169,"date":"2012-03-30T23:19:43","date_gmt":"2012-03-30T23:19:43","guid":{"rendered":"https:\/\/shan.info\/new\/how-to-configure-yum-to-exclude-a-mirror\/"},"modified":"2012-03-30T23:19:43","modified_gmt":"2012-03-30T23:19:43","slug":"how-to-configure-yum-to-exclude-a-mirror","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/how-to-configure-yum-to-exclude-a-mirror\/","title":{"rendered":"How To Configure Yum To Exclude A Mirror"},"content":{"rendered":"<p style=\"margin-top: 0.6em; margin-bottom: 1.2em; color: #555555; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Geneva, sans-serif; line-height: 20px; text-align: left; padding: 0px;\">Many of us have suffered from failing package repository mirrors. Some are slow, some won&#8217;t have updated content, etc. You might want to remove\/<span id=\"wordhighlight_id0\" class=\"wordhighlight_ext wordhighlight_word1\" name=\"wordhighlight_word1\" style=\"display: inline; background-image: initial; background-attachment: initial; color: black; background-color: rgba(153, 204, 255, 0.898438);\">black<\/span><span id=\"wordhighlight_id1\" class=\"wordhighlight_ext wordhighlight_word2\" name=\"wordhighlight_word2\" style=\"display: inline; background-image: initial; background-attachment: initial; color: black; background-color: rgba(255, 153, 204, 0.730469);\">list<\/span>&nbsp;a particular mirror in your yum configuration.<\/p>\n<p style=\"margin-top: 0.6em; margin-bottom: 1.2em; color: #555555; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Geneva, sans-serif; line-height: 20px; text-align: left; padding: 0px;\">Before trying to remove a mirror, install the fastest mirror plugin.<\/p>\n<div class=\"geshifilter\" style=\"color: #222222; line-height: 1.3; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Geneva, sans-serif; text-align: left; border-width: 1px; border-color: #cccccc; border-style: solid; padding: 0.5em; margin: 0.5em;\">\n<pre class=\"text geshifilter-text\" style=\"background-image: initial; background-attachment: initial; background-color: #cccccc; font-size: 12px; line-height: 1.3; font-family: monospace; border-width: 1px; border-color: #dddddd; border-style: solid; padding: 0px; margin: 0px;\">yum install <span id=\"wordhighlight_id2\" class=\"wordhighlight_ext wordhighlight_word0\" name=\"wordhighlight_word0\" style=\"display: inline; background-image: initial; background-attachment: initial; background-color: #ffff80;\">yum-fastestmirror<\/span> -y<\/pre>\n<\/div>\n<p style=\"margin-top: 0.6em; margin-bottom: 1.2em; color: #555555; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Geneva, sans-serif; line-height: 20px; text-align: left; padding: 0px;\">The fastest mirror plugin is capable of determining mirror speeds and cache it. If that works for you well and good.<\/p>\n<p style=\"margin-top: 0.6em; margin-bottom: 1.2em; color: #555555; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Geneva, sans-serif; line-height: 20px; text-align: left; padding: 0px;\">If not, manually exclude a mirror in \/etc\/yum\/pluginconf.d\/fastestmirror.conf. Use the exclude variable and set its value to the URL to be&nbsp;<span id=\"wordhighlight_id3\" class=\"wordhighlight_ext wordhighlight_word1\" name=\"wordhighlight_word1\" style=\"display: inline; background-image: initial; background-attachment: initial; color: black; background-color: rgba(153, 204, 255, 0.898438);\">black<\/span><span id=\"wordhighlight_id4\" class=\"wordhighlight_ext wordhighlight_word2\" name=\"wordhighlight_word2\" style=\"display: inline; background-image: initial; background-attachment: initial; color: black; background-color: rgba(255, 153, 204, 0.730469);\">list<\/span>ed.<\/p>\n<p style=\"margin-top: 0.6em; margin-bottom: 1.2em; color: #555555; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Geneva, sans-serif; line-height: 20px; text-align: left; padding: 0px;\">Example<\/p>\n<div class=\"geshifilter\" style=\"color: #222222; line-height: 1.3; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Geneva, sans-serif; text-align: left; border-width: 1px; border-color: #cccccc; border-style: solid; padding: 0.5em; margin: 0.5em;\">\n<pre class=\"text geshifilter-text\" style=\"background-image: initial; background-attachment: initial; background-color: #cccccc; font-size: 12px; line-height: 1.3; font-family: monospace; border-width: 1px; border-color: #dddddd; border-style: solid; padding: 0px; margin: 0px;\">exclude = fedora.iitm.ac.in<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Many of us have suffered from failing package repository mirrors. Some are slow, some won&#8217;t have updated content, etc. You might want to remove\/blacklist&nbsp;a particular mirror in your yum configuration. Before trying to remove a mirror, install the fastest mirror plugin. yum install yum-fastestmirror -y The fastest mirror plugin is capable of determining mirror speeds [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-centos-6"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}