[英]Install Obsolete Devtoolset Collection for CentOS
At present time Devtoolset-5 (and earlier) cannot be istalled from Software Collection Repository (centos-release-scl) using yum
(only Devtoolset-6 and 7 are available).目前时间Devtoolset-5(或更早)不能从软件集合库(的centos-release-SCL)使用istalled
yum
(仅Devtoolset-6和7是可用的)。 Nevertheless, this collection can be downloaded as a list of rpm-packages.不过,这个集合可以作为 rpm 包列表下载。 Is it possible to enable such EOL collections for
yum
, or maybe there is another way to install them correctly?是否可以为
yum
启用此类 EOL 集合,或者是否有另一种方法可以正确安装它们?
There was no DTS 5 release.没有 DTS 5 版本。 It was skipped to align the DTS version with the GCC major release, once GCC switched to a yearly increasing version number.
一旦 GCC 切换到逐年增加的版本号,就跳过了将 DTS 版本与 GCC 主要版本保持一致的步骤。
DTS versions 3 and 4 are available from the centos-release-scl
repository. DTS 版本 3 和 4 可从
centos-release-scl
储存库获得。
While Devtoolset-3 and 4 are located on the Centos mirror site , yum
will not be able to find them as they were not included in the repodata
on the site.虽然 Devtoolset-3 和 4 位于 Centos 镜像站点,但
yum
将无法找到它们,因为它们未包含在站点的repodata
。 These were probably excluded because they are EOL (end-of-life), and have dependency bugs ( Bug 1410152 ).这些可能被排除在外,因为它们是 EOL(生命周期结束),并且存在依赖性错误(错误 1410152 )。 Try using the older Devtoolset-3 packages here, which do not have the dependency issues:
尝试在此处使用较旧的Devtoolset-3 软件包,它们没有依赖性问题:
https://copr.fedorainfracloud.org/coprs/rhscl/devtoolset-3/ https://copr.fedorainfracloud.org/coprs/rhscl/devtoolset-3/
If you really want the packages from the centos.org site, I went with wget
to download all the RPMs, then recreated a local yum repo.如果您真的想要来自 centos.org 站点的软件包,我会使用
wget
下载所有 RPM,然后重新创建一个本地 yum 存储库。 However, you'll see the dependency issues and yum install devtoolset-3
will fail.但是,您会看到依赖项问题,并且
yum install devtoolset-3
将失败。
$ wget -r -p -e robots=off --directory-prefix="/mnt/local-devtoolset3-repo" --recursive --no-clobber --no-parent http://mirror.centos.org/centos/6/sclo/x86_64/rh/devtoolset-3/
$ sudo yum install createrepo
$ cd /mnt/local-devtoolset3-repo
$ createrepo --database .
您可以通过以下方式安装过时的 devtoolset-3:
sudo yum --obsolete install devtoolset-3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.