Element for building previous releases of CentOS 7#27
Conversation
Use the CentOS vault and some known build numbers for cloud images and repos. Modify repos to pin packages at the designated release.
| # This assumes a fair amount about the structure of the CentOS-Base repo file. | ||
| # Would be nice to use -E "s/^\[(base|updates|extras|centosplus)\]/\[\1_$DIB_CENTOS7_MIRROR_VERSION\]/g" | ||
|
|
||
| sed -e "s|^#baseurl=http[s]*://mirror.centos.org/centos|baseurl=$DIB_CENTOS7_MIRROR|" \ |
There was a problem hiding this comment.
I guess the alternative is to include a current version of CentOS-Vault.repo and update it when there is a new release which you currently need to do anyway due to the switch on DIB_CENTOS7_VERSION.
There was a problem hiding this comment.
Is there a CentOS-Vault.repo file published on vault.centos.org? If not I don't think there's a clear advantage that way. This way we can also cope with (eg) internal mirrors or other CentOS repos.
There was a problem hiding this comment.
Not directly, but you can get it from the latest centos-release package, e.g: http://mirror.centos.org/centos/7/os/x86_64/Packages/centos-release-7-7.1908.0.el7.centos.x86_64.rpm. Like you say though, there probably isn't a massive advantage though.
Use the CentOS vault and some known build numbers for cloud images and repos.
Modify repos to pin packages at the designated release.