<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>expire &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/expire/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Wed, 07 Jun 2017 02:24:07 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>Centos 5.X 升級更新問題</title>
		<link>https://blog.richliu.com/2017/04/26/2142/centos-5-x-%e5%8d%87%e7%b4%9a%e6%9b%b4%e6%96%b0%e5%95%8f%e9%a1%8c/</link>
					<comments>https://blog.richliu.com/2017/04/26/2142/centos-5-x-%e5%8d%87%e7%b4%9a%e6%9b%b4%e6%96%b0%e5%95%8f%e9%a1%8c/#comments</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Wed, 26 Apr 2017 04:32:06 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[expire]]></category>
		<guid isPermaLink="false">https://blog.richliu.com/?p=2142</guid>

					<description><![CDATA[<p>今天重灌某一台機器的時候發現 CentOS 5.X 己經停止支援了，所以各大 Mirror Site 都砍掉這 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2017/04/26/2142/centos-5-x-%e5%8d%87%e7%b4%9a%e6%9b%b4%e6%96%b0%e5%95%8f%e9%a1%8c/">Centos 5.X 升級更新問題</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>今天重灌某一台機器的時候發現 CentOS 5.X 己經停止支援了，所以各大 Mirror Site 都砍掉這些檔案<br />
<span id="more-2142"></span></p>
<p>主要還是 yum update 不能用了, 像是</p>
<pre lang="text">
# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. /
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/5/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
</pre>
<p>這時候就要修改 mirror 檔案, mark 掉所有 mirrorlist 的地方, 改從 valut 抓檔案<br />
編輯 /etc/yum.repos.d/CentOS-Base.repo , mark 掉所有 mirrorlist=<br />
分別加上</p>
<pre lang="text">
baseurl=http://vault.centos.org/5.11/os/$basearch

baseurl=http://vault.centos.org/5.11/updates/$basearch

baseurl=http://vault.centos.org/5.11/extras/$basearch

baseurl=http://vault.centos.org/5.11/centosplus/$basearch

baseurl=http://vault.centos.org/5.11/contrib/$basearch
</pre>
<p>硬改 5.11 應該也沒有什麼關係，反正也不會再升級或是進版了</p>
<p>好像沒有什麼文章講到這件事, 所以記錄一下</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2017/04/26/2142/centos-5-x-%e5%8d%87%e7%b4%9a%e6%9b%b4%e6%96%b0%e5%95%8f%e9%a1%8c/">Centos 5.X 升級更新問題</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2017/04/26/2142/centos-5-x-%e5%8d%87%e7%b4%9a%e6%9b%b4%e6%96%b0%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
