Skip to content

Instantly share code, notes, and snippets.

@trlinkin
Last active October 13, 2016 18:05
Show Gist options
  • Select an option

  • Save trlinkin/c085197f2c4bdd2848619aeb17530fcb to your computer and use it in GitHub Desktop.

Select an option

Save trlinkin/c085197f2c4bdd2848619aeb17530fcb to your computer and use it in GitHub Desktop.
yumrepo { 'updates':
ensure => 'present',
descr => 'CentOS-$releasever - Updates',
enabled => '1',
gpgcheck => '1',
gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7',
mirrorlist => 'http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra',
}
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
enabled=1
@trlinkin
Copy link
Author

Copy the update.repo content to: /etc/yum.repos.d/update.repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment