LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 11:35 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

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, 11:39 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
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, 11:47 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

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, 02:48 PM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
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, 02:51 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

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



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

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

All times are GMT -5. The time now is 09:07 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
Open Source Consulting | Domain Registration