LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2014, 06:30 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Rep: Reputation: Disabled
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

Last edited by NotionCommotion; 04-04-2014 at 06:49 PM.
 
Old 04-05-2014, 11:38 AM   #2
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 498

Rep: Reputation: 137Reputation: 137
Verifying Signed Packages
Checking a Package's Signature
 
Old 04-12-2014, 01:57 PM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mddesai View Post
I read the two documents. While very informative, they did not answer the following:
  • Should I save all keys in /etc/pki/rpm-gpg?
  • Does it mater what I name a key? Are there accepted naming conventions?
  • Why are the keys such as "RPM-GPG-KEY-rpmforge-dag" sometimes automatically added without having to manually add?
  • Is as your suggested links suggest "rpm -K --nosignature <rpm_file>" more appropriate than using "gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-IUS"?

Thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot add repository Xlr_Prahlad Linux - Software 1 10-21-2012 11:15 AM
error trying to add repository bic Ubuntu 3 04-26-2011 02:58 PM
[SOLVED] using maverick - added one new repository but now can't add another repository gerryyy Linux - Software 6 02-16-2011 07:47 AM
[SOLVED] Difference between add-apt-repository and apt-add-repository Kenny_Strawn Ubuntu 3 12-22-2010 08:50 PM
How do I add a repository to a live cd? Muscovy Ubuntu 12 06-07-2010 02:45 PM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration