yum 网络源

在linux下安装db2 9.5需要libstdc++so.5,这在光盘是找不到的,在网上下载也不太好找,还是用yum吧,需要配置下网络源

 

修改/etc/rhel-debuginfo.repo文件

增加以下内容:

[base]

name=centos-5 - Base

baseurl=http://centos.ustc.edu.cn/centos/5/os/i386/

# the other site: http://centos.candishosting.com.cn/centos/5/os/i386/

# you can find more site in: http://www.centos.org/modules/tinycontent/index.php?id=13

enabled=1

gpgcheck=1

gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5

#released updates 

[update]

name=CentOS-5 - Updates

baseurl=http://mirror.centos.org/centos/5/updates/i386/

gpgcheck=1

gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released 

[addons]

name=CentOS-5 - Addons

baseurl=http://mirror.centos.org/centos/5/addons/$basearch/

gpgcheck=1

gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful 

[extras]

name=CentOS-5 - Extras

baseurl=http://mirror.centos.org/centos/5/extras/$basearch/

gpgcheck=1

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that extend functionality of existing packages 

[centosplus]

name=CentOS-5 - Plus

baseurl=http://mirror.centos.org/centos/5/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users 

[contrib]

name=CentOS-5 - Contrib

baseurl=http://mirror.centos.org/centos/5/contrib/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5

#packages in testing 

[testing]

name=CentOS-5 - Testing

baseurl=http://mirror.centos.org/centos/5/testing/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5

 

保存下,yum install libstdc++so.5,这样就可以在网上搜索下载这个文件了

 


你可能感兴趣的:(Install,职场,db2,yum,休闲)