LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-11-2013, 12:35 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 717

Rep: Reputation: Disabled
What does import key do?


A while back, when following some tutorial to build a Centos 5.3 server, I came across the following:
Code:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
What does it do? Is it required for Centos 6.4?

Thank you
 
Old 06-11-2013, 12:39 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
As far as I know (and can tell) it imports signing keys to ensure you're not stuck with messy stuff (virusses, trojans other stuff) in the repo...
 
Old 06-11-2013, 12:47 PM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 717

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
As far as I know (and can tell) it imports signing keys to ensure you're not stuck with messy stuff (virusses, trojans other stuff) in the repo...
Thanks Thor,

So this was specific to a given repository, and I would only do such a thing when using that specific repository?
 
Old 06-11-2013, 03:48 PM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
As far as I can tell yes...it's just about the same with Arch Linux, the command there is pacman-key...but the general idea is the same: security...
 
Old 06-11-2013, 03:51 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by NotionCommotion View Post
Thanks Thor,

So this was specific to a given repository, and I would only do such a thing when using that specific repository?
yes many repos have signed PGP keys, that is exactly what you are importing. when you run yum vs that repo it will verify that the PGP key you have matches that of the repo's URL. this is for security and safety.
 
  


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
import gpg key cccc Debian 7 06-20-2011 07:16 PM
How can I import a public key into seahorse? abefroman Linux - Software 1 10-22-2009 01:46 AM
How can i import my RSA key ZAMO Linux - General 6 06-03-2008 05:21 AM
Import key 24giovanni Fedora 1 10-21-2006 05:51 PM
import packman digital key little_penguin SUSE / openSUSE 2 08-07-2006 01:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:56 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