Skip to content

Instantly share code, notes, and snippets.

@marpada
Created November 17, 2015 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marpada/f067a3d50defb122066d to your computer and use it in GitHub Desktop.
Save marpada/f067a3d50defb122066d to your computer and use it in GitHub Desktop.
Add nodesource yum repo for nodesource_012 (workaround https://github.com/nodesource/distributions/issues/124)
#!/bin/bash
# Import GPG key of Nodesource RPM Repo
wget -O /etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL
rpm --import /etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
[nodesource]
name=Node.js Packages for Enterprise Linux 7 (pub 0.12) - $basearch
baseurl=https://rpm.nodesource.com/pub_0.12/el/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
[nodesource-source]
name=Node.js for Enterprise Linux 7 (pub 0.12) - $basearch - Source
baseurl=https://rpm.nodesource.com/pub_0.12/el/7/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
gpgcheck=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment