Skip to content

Instantly share code, notes, and snippets.

@kordewiner
Forked from n0ts/sources.repo
Last active October 16, 2016 12:55
Show Gist options
  • Save kordewiner/c7ba6eb5a2d96e12e5bdf42d9d2c0a34 to your computer and use it in GitHub Desktop.
Save kordewiner/c7ba6eb5a2d96e12e5bdf42d9d2c0a34 to your computer and use it in GitHub Desktop.
SRPM yum repository for CentOS 6
#
# To define a custom variable or to override the value of an existing
# one, create a file with the same name as the variable (without the
# “$” sign) in the /etc/yum/vars/ directory, and add the desired value
# on its first line.
#
# See https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Using_Yum_Variables.html
#
# You need this line in /etc/rc.d/rc.local if You don't have the variable $full_releasever
#
# /bin/awk '{print$3}' < /etc/redhat-release > /etc/yum/vars/full_releasever
#
[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment