LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What does import key do? (https://www.linuxquestions.org/questions/linux-newbie-8/what-does-import-key-do-4175465580/)

NotionCommotion 06-11-2013 11:35 AM

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

ButterflyMelissa 06-11-2013 11:39 AM

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...

NotionCommotion 06-11-2013 11:47 AM

Quote:

Originally Posted by Thor_2.0 (Post 4969668)
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?

ButterflyMelissa 06-11-2013 02:48 PM

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...

lleb 06-11-2013 02:51 PM

Quote:

Originally Posted by NotionCommotion (Post 4969676)
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.


All times are GMT -5. The time now is 02:19 AM.