红旗 RUN LINUX yum

网上

 

  
  
  
  
  1. #  
  2. #  
  3. [base]  
  4. name=CentOS-$releasever - Base  
  5. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os  
  6. #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/  
  7. gpgcheck=1  
  8. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
  9. #released updates  
  10.  
  11. [updates]  
  12.    
  13. name=CentOS-$releasever - Updates  
  14. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates  
  15. #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/  
  16. gpgcheck=1  
  17. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
  18. #packages used/produced in the build but not released  
  19.  
  20. [addons]  
  21.    
  22. name=CentOS-$releasever - Addons  
  23. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons  
  24. #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/  
  25. gpgcheck=1  
  26. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
  27. #additional packages that may be useful  
  28.  
  29. [extras]  
  30.    
  31. name=CentOS-$releasever - Extras  
  32. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras  
  33. #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/  
  34. gpgcheck=1  
  35. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
  36. #additional packages that extend functionality of existing packages  
  37.  
  38. [centosplus]  
  39.    
  40. name=CentOS-$releasever - Plus  
  41. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus  
  42. #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/  
  43. gpgcheck=1  
  44. enabled=0  
  45. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
  46. #contrib - packages by Centos Users  
  47.  
  48. [contrib]  
  49. name=CentOS-$releasever - Contrib  
  50. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib  
  51. #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/  
  52. gpgcheck=1  
  53. enabled=0  
  54. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  


 

我的电脑读的$releasever不正确改成5

 

  
  
  
  
  1. #  
  2. #  
  3. [base]  
  4. name=CentOS-$releasever - Base  
  5. baseurl=http://mirror.centos.org/centos/5/os/$basearch/  
  6. gpgcheck=1  
  7. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
  8. #released updates  
  9.  
  10. [updates]  
  11.  
  12. name=CentOS-$releasever - Updates  
  13. baseurl=http://mirror.centos.org/centos/5/updates/$basearch/  
  14. gpgcheck=1  
  15. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
  16. #packages used/produced in the build but not released  
  17.  
  18. [addons]  
  19.  
  20. name=CentOS-$releasever - Addons  
  21. baseurl=http://mirror.centos.org/centos/5/addons/$basearch/  
  22. gpgcheck=1  
  23. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
  24. #additional packages that may be useful  
  25.  
  26. [extras]  
  27.  
  28. name=CentOS-$releasever - Extras  
  29. baseurl=http://mirror.centos.org/centos/5/extras/$basearch/  
  30. gpgcheck=1  
  31. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
  32. #additional packages that extend functionality of existing packages  
  33.  
  34. [centosplus]  
  35.  
  36. name=CentOS-$releasever - Plus  
  37. baseurl=http://mirror.centos.org/centos/5/centosplus/$basearch/  
  38. gpgcheck=1  
  39. enabled=0  
  40. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  
  41. #contrib - packages by Centos Users  
  42.  
  43. [contrib]  
  44. name=CentOS-$releasever - Contrib  
  45. baseurl=http://mirror.centos.org/centos/5/contrib/$basearch/  
  46. gpgcheck=1  
  47. enabled=0  
  48. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5  

 yum clean all

yum update pidgin

 

本文出自 “天凉了” 博客,转载请与作者联系!

你可能感兴趣的:(linux,yum,run,休闲,红旗)