<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[歌声与微笑]]></title> 
<link>http://www.gsywx.com/index.php</link> 
<description><![CDATA[歌声与微笑]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[歌声与微笑]]></copyright>
<item>
<link>http://www.gsywx.com/read.php/.htm</link>
<title><![CDATA[RHEL5.4利用centos yum进行更新]]></title> 
<author>admin &lt;admin@gsywx.com&gt;</author>
<category><![CDATA[电脑类]]></category>
<pubDate>Fri, 11 Jun 2010 14:18:42 +0000</pubDate> 
<guid>http://www.gsywx.com/read.php/.htm</guid> 
<description>
<![CDATA[ 
	1.rhel5系统安装的时候其实已经有yum了，刚安装redhat就可以在终端敲入yum，只是会提示没有注册 <br/>This system is not registered with RHN. <br/>RHN support will be disabled. <br/>只是因为如果用官方的网站更新的话除非你是用钱买的rhel5.否则它会提示注册之类的。 <br/>当然用[root@localhost Desktop]#yum update当然也是不行的 <br/>因此，我试着在网上找一些方法来实现yum自动更新，有的网站说利用CentOS的yum更新源，但需要删掉RedHat 5本来的yum，我先利用rpm -qa &#124; grep yum找到所有yum文件，然后又用rpm -e命令删除<br/>rpm -e yum-metadata-parser-1.1.2-3.el5<br/>rpm -e yum-3.2.22-20.el5<br/>rpm -e yum-updatesd-0.9-2.el5<br/>rpm -e yum-rhn-plugin-0.5.4-13.el5<br/>rpm -e yum-security-1.1.16-13.el5<br/>因为依赖性，实际删除的文件不止这么几个<br/>于是再恢复安装RedHat 5本来的yum,于是在光盘里面找，于是将删掉的文件又重新安装上去了，主要是： <br/>yum-3.2.22-20.el5 <br/>安装好以后在命令行敲入yum，终于有可以找到它了，呵呵 <br/>2. 修改源配置文件 ＃gedit /etc/yum.repos.d/CentOS-Base.repo <br/>在其中加入以下内容 <br/>[base] <br/>name=CentOS-5-Base <br/>#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os <br/>#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ <br/>baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/ <br/>gpgcheck=1 <br/>gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 <br/>#released updates <br/>[update] <br/>name=CentOS-5-Updates <br/>#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates <br/>baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/ <br/>gpgcheck=1 <br/>gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 <br/>#packages used/produced in the build but not released <br/>[addons] <br/>name=CentOS-5-Addons <br/>#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons <br/>baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/ <br/>gpgcheck=1 <br/>gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 <br/>#additional packages that may be useful <br/>[extras] <br/>name=CentOS-5-Extras <br/>#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras <br/>baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/ <br/>gpgcheck=1 <br/>gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 <br/>#additional packages that extend functionality of existing packages <br/>[centosplus] <br/>name=CentOS-5-Plus <br/>#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus <br/>baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/ <br/>gpgcheck=1 <br/>enabled=0 <br/>gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 <br/>#contrib - packages by Centos Users <br/>[contrib] <br/>name=CentOS-5-Contrib <br/>#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib <br/>baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/ <br/>gpgcheck=1 <br/>enabled=0 <br/>gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 <br/># vi dag.repo <br/>[dag] <br/>name=Dag RPM Repository for RHEL5 <br/>baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/ <br/>enabled=1 <br/>gpgcheck=1 <br/>gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt <br/>3. 导入key <br/>＃rpm --import http://ftp.sjtu.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5 <br/>4. 运行，测试 <br/>＃yum list vsftpd<br/>5.如果结果出现错误： <br/>warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6 <br/>GPG key retrieval failed: [Errno 14] HTTP Error 404: Not Found <br/>此时，将gpgcheck=1改成gpgcheck=0即可。 <br/>6. 运行，测试 <br/>＃yum install vsftpd <br/>能够正确安装上了，就是更新文件列表的速度相当慢。<br/>Tags - <a href="http://www.gsywx.com/go.php/tags/redhat5/" rel="tag">redhat5</a> , <a href="http://www.gsywx.com/go.php/tags/yum/" rel="tag">yum</a>
]]>
</description>
</item><item>
<link>http://www.gsywx.com/read.php/.htm#blogcomment</link>
<title><![CDATA[[评论] RHEL5.4利用centos yum进行更新]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.gsywx.com/read.php/.htm#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>