Created
October 3, 2012 10:58
-
-
Save n0ts/3826392 to your computer and use it in GitHub Desktop.
SRPM yum repository for CentOS 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[base-source] | |
name=CentOS-$full_releasever - Base source | |
baseurl=http://vault.centos.org/$full_releasever/os/Source/ | |
gpgcheck=1 | |
gpgkey=http://vault.centos.org//RPM-GPG-KEY-CentOS-6 | |
priority=1 | |
enabled=1 | |
[updates-source] | |
name=CentOS-$full_releasever - Updates Source | |
baseurl=http://vault.centos.org/$full_releasever/updates/Source/ | |
gpgcheck=1 | |
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 | |
priority=1 | |
enabled=1 |
This did not work for me out of the box. In https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Using_Yum_Variables.html there is a list of all default Yum variables and "$full_releasever" is not among them. So I had to define it by myself - I've done it in /etc/rc.d/rc.local
with this line:
/bin/awk '{print$3}' < /etc/redhat-release > /etc/yum/vars/full_releasever
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yum still doesn't resolve this.