yum 安装包 出现Public key for *.rpm is not installed 警告的解决方法

 下午在做源码编译前,安装开发环境的时候,

  
  
  
  
  1. yum -y groupinstall "Development Librariries" "X Software Development" "Development Tools" 

时,出现了Public key for *.rpm is not installed 的警告,部分代码如下:

  
  
  
  
  1. (125/136): python-devel-2.4.3-46.el5.i386.rpm                                                               
  2.  
  3.     | 3.0 MB     00:00      
  4. (126/136): libXxf86vm-devel-1.0.1-3.1.i386.rpm                                                              
  5.  
  6.     |  12 kB     00:00      
  7. (127/136): libX11-devel-1.0.3-11.el5_7.1.i386.rpm                                                           
  8.  
  9.     | 661 kB     00:00      
  10. (128/136): mesa-libGLU-devel-6.5.1-7.10.el5.i386.rpm                                                        
  11.  
  12.     |  92 kB     00:00      
  13. (129/136): krb5-devel-1.6.1-70.el5.i386.rpm                                                                 
  14.  
  15.     | 1.9 MB     00:00      
  16. (130/136): cyrus-sasl-devel-2.1.22-5.el5_4.3.i386.rpm                                                       
  17.  
  18.     | 1.4 MB     00:00      
  19. (131/136): libpng-devel-1.2.10-7.1.el5_7.5.i386.rpm                                                         
  20.  
  21.     | 182 kB     00:00      
  22. (132/136): libxml2-devel-2.6.26-2.1.12.el5_7.2.i386.rpm                                                     
  23.  
  24.     | 2.1 MB     00:00      
  25. (133/136): libICE-devel-1.0.1-2.1.i386.rpm                                                                  
  26.  
  27.     |  13 kB     00:00      
  28. (134/136): libicu-3.6-5.16.1.i386.rpm                                                                       
  29.  
  30.     | 5.3 MB     00:00      
  31. (135/136): libbonobo-devel-2.16.0-1.1.el5_5.1.i386.rpm                                                      
  32.  
  33.     | 498 kB     00:00      
  34. (136/136): libXext-devel-1.0.1-2.1.i386.rpm                                                                 
  35.  
  36.     |  57 kB     00:00      
  37. --------------------------------------------------------------------------------------------------------- 
  38.  
  39. ----------------------------- 
  40. Total                                                                                                 4.6  
  41.  
  42. MB/s |  55 MB     00:11      
  43. warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186 
  44.  
  45.  
  46. Public key for libXxf86misc-devel-1.0.1-3.1.i386.rpm is not installed 

此时要导入rpm的签名信息即可

以root登录,执行下面命令
 

  
  
  
  
  1. # rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release 
  2.  
  3. cat /etc/issue    //查看系统版本 

根据我的Linux版本是redhat-release 5.8

于是我执行下面命令

  
  
  
  
  1. #rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release 


再次yum 安装包,这次安装顺利结束。

问题终于得到解决!希望能对出现过此问题的人有所帮助

 

你可能感兴趣的:(warning,yum安装包出现警告)