NotionCommotion |
04-04-2014 05:30 PM |
Best practices to add a repository
Please confirm that the process I am using to add a repository to Centos is correct. Thank you
Code:
# save the key to the appropriate folder. Question: Does it mater what I call it? Should I always save keys here? Why are the keys such as "RPM-GPG-KEY-rpmforge-dag" sometimes automatically added without doing this?
wget -O /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY http://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY
# Verify the key is correct. Question. How do I do this?
gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-IUS
#Import the key
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-IUS
#Where available, download. When not, manually create as /etc/yum.repos.d/ius.repo
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm
#Edit /etc/yum.repos.d/ius.repo and add appropriate priorities level, and set enabled as 0 or 1 as desired
|