<?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>深度VPS &#187; 重新安装</title>
	<atom:link href="http://www.deepvps.com/tag/%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85/feed" rel="self" type="application/rss+xml" />
	<link>http://www.deepvps.com</link>
	<description>专注VPS技术，关注前端技术</description>
	<lastBuildDate>Sat, 04 Feb 2023 14:00:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CentOS下重新安装yum的方法</title>
		<link>http://www.deepvps.com/centos-reinstall-yum.html</link>
		<comments>http://www.deepvps.com/centos-reinstall-yum.html#comments</comments>
		<pubDate>Sat, 23 Oct 2010 16:31:24 +0000</pubDate>
		<dc:creator>deepvps</dc:creator>
				<category><![CDATA[VPS管理维护]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[重新安装]]></category>

		<guid isPermaLink="false">http://www.deepvps.com/?p=612</guid>
		<description><![CDATA[今天deepvps不小心误删除了VPS下面的yum，大家都知道yum在linux中是很重要的一个功能，软件的下载，系统的更新都要靠他。没有yum，系统基本处于半残废状态。
deepvps晚上Google好久没有结果。后来问了猫哥，猫哥果然高人，三言两语就给解决了。现在简单记录如下，方便后面出现问题的同学查看。
在SSH里面依次输入下面的命令：
1，下载最新的yum-3.2.28.tar.gz并解压
wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz
tar xvf yum-3.2.28.tar.gz

2，进入目录，运行安装
cd yum-3.2.28
yummain.py install yum
结果提示错误： CRITICAL:yum.cli:Config Error: Error accessing file for config  file:///etc/
后来经猫哥提醒，原来是缺少配置文件。在etc目录下面新建yum.conf文件，然后再次运行 yummain.py install yum，顺利完成安装。
3，最后更新系统，全部搞定，收工。^_^
yum check-update
yum update
yum clean all
]]></description>
			<content:encoded><![CDATA[<p>今天deepvps不小心误删除了VPS下面的yum，大家都知道yum在linux中是很重要的一个功能，软件的下载，系统的更新都要靠他。没有yum，系统基本处于半残废状态。</p>
<p>deepvps晚上Google好久没有结果。后来问了猫哥，猫哥果然高人，三言两语就给解决了。现在简单记录如下，方便后面出现问题的同学查看。</p>
<p>在SSH里面依次输入下面的命令：</p>
<p>1，下载最新的yum-3.2.28.tar.gz并解压</p>
<blockquote><p>wget <a href="http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz">http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz</a><br />
tar xvf yum-3.2.28.tar.gz</p></blockquote>
<p><span id="more-612"></span><br />
2，进入目录，运行安装</p>
<blockquote><p>cd yum-3.2.28<br />
yummain.py install yum</p></blockquote>
<p>结果提示错误： CRITICAL:yum.cli:Config Error: Error accessing file for config  file:///etc/</p>
<p>后来经猫哥提醒，原来是缺少配置文件。在etc目录下面新建yum.conf文件，然后再次运行 yummain.py install yum，顺利完成安装。</p>
<p>3，最后更新系统，全部搞定，收工。^_^</p>
<blockquote><p>yum check-update<br />
yum update<br />
yum clean all</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.deepvps.com/centos-reinstall-yum.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
