linux – 将源回购添加到CentOS 5

前端之家收集整理的这篇文章主要介绍了linux – 将源回购添加到CentOS 5前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
添加/启用哪些存储库以及包含CentOS 5中所有源文件包的存储库?

这是为了启用yumdownloader –source< package_name>

解决方法

事实证明,源回购定义不包括在内.将以下内容添加为/etc/yum.repos.d/Centos-Source.repo:
[base-source]
name=CentOS-$releasever - Base Source
baseurl=http://mirror.centos.org/centos/$releasever/os/SRPMS/
enabled=0

[updates-source]
name=CentOS-$releasever - Updates Source
baseurl=http://mirror.centos.org/centos/$releasever/updates/SRPMS/
enabled=0

[addons-source]
name=CentOS-$releasever - Addons Source
baseurl=http://mirror.centos.org/centos/$releasever/addons/SRPMS/
enabled=0

[extras-source]
name=CentOS-$releasever - Extras Source
baseurl=http://mirror.centos.org/centos/$releasever/extras/SRPMS/
enabled=0

[centosplus-source]
name=CentOS-$releasever - Plus Source
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/SRPMS/
enabled=0

[contrib-source]
name=CentOS-$releasever - Contrib Source
baseurl=http://mirror.centos.org/centos/$releasever/contrib/SRPMS/
enabled=0

猜你在找的Linux相关文章