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 09-16-2010, 12:19 PM   #1
rmknox
Member
 
Registered: May 2010
Posts: 354

Rep: Reputation: 34
How do I get the public key for a package so I can install with yum? fedora 12


I understand that I can specify nogpgcheck on the command line, or gpgcheck=0 in the repo file, but if I want to do it "right" how would I get the public key? And where should I have looked to find this without bothering the group? I looked in man yum and don't seem to find it.

Thanks Dick
 
Old 09-16-2010, 01:00 PM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by rmknox View Post
I understand that I can specify nogpgcheck on the command line, or gpgcheck=0 in the repo file, but if I want to do it "right" how would I get the public key? And where should I have looked to find this without bothering the group? I looked in man yum and don't seem to find it.

Thanks Dick
You have to import the gpgkey from the repo you are using. If you will create a repo from your F13 dvd then import it from the F13 DVD.
 
Old 09-16-2010, 01:58 PM   #3
rmknox
Member
 
Registered: May 2010
Posts: 354

Original Poster
Rep: Reputation: 34
Quote:
You have to import the gpgkey from the repo you are using. If you will create a repo from your F13 dvd then import it from the F13 DVD.
divyashree - I'm not a linux/fedora knowledgable person - my expertise lies in other domains. I dont even know how to ask what your message means. What does it mean to "import from the repo I am using"?
I created the repo file with gedit. I understand I can include a line that says
Code:
gpgcheck=12345
I don't know how to get that number. I assume that your explanation tells me how to do that, but I dont understand any of the terms you use.
Imagine that I have created a file named skype.repo and that it says
Code:
[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
What steps do I take to get the number for the gpgcheck line?
I go to http://??? and ???
or I look in a file named ???
i.e.
can you explain in action steps what you are saying in abstract terms?

Thanks Dick

If it is germain, when I originally got Fedoora I downloaded an iso file from the web, burned it onto a CD, booted from that CD, answered questions in an interactive installation process. Are you implying that I use that CD to get the gpgcheck number for skype? If so, how do I do that?

Last edited by rmknox; 09-16-2010 at 03:43 PM.
 
Old 09-17-2010, 12:32 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Actually, gpgcheck is either 1 = on or 0 = off; effectively true or false.
This means whether or not to check for a gpg key.
See the repository (repo) files created by your F13 installation.
If you add another repo eg the skype one you mention, that website (aka repo site) should offer a gpg key somewhere to you.
According to your repo file, you've already got a ptr to the gpgkey (signature) .
You just need to add a line

gpgcheck=1

to that repo file.
 
1 members found this post helpful.
Old 09-17-2010, 06:31 AM   #5
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by rmknox View Post
divyashree - I'm not a linux/fedora knowledgable person - my expertise lies in other domains. I dont even know how to ask what your message means. What does it mean to "import from the repo I am using"?
I created the repo file with gedit. I understand I can include a line that says
Code:
gpgcheck=12345
I don't know how to get that number. I assume that your explanation tells me how to do that, but I dont understand any of the terms you use.
Imagine that I have created a file named skype.repo and that it says
Code:
[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
What steps do I take to get the number for the gpgcheck line?
I go to http://??? and ???
or I look in a file named ???
i.e.
can you explain in action steps what you are saying in abstract terms?

Thanks Dick

If it is germain, when I originally got Fedoora I downloaded an iso file from the web, burned it onto a CD, booted from that CD, answered questions in an interactive installation process. Are you implying that I use that CD to get the gpgcheck number for skype? If so, how do I do that?
NO you are not getting my point. How can you get the gpgcheck key from cd while you are installing from skype repo online.

If you want to install any pkg from DVD then you can create a repo and to install them you have to import the gpg key from the DVD.

In your skype repo you have the link of the gpgkey to import it but you have forgotten to add a line wheather to enable(gpgcheck=1) gpgkey checking or disable(gpgcheck=0) gpgkey checking.

Last edited by divyashree; 09-17-2010 at 07:59 AM.
 
Old 09-17-2010, 06:50 AM   #6
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
Hi rmknox,

Lets consider an example

Steps:

Open This URL and observe the gpg key files available.

Now save RPM-GPG-KEY-fedora-i386 key to a location in your local system. you may choose x86_64 key, based on the architecture of your system.

Import the gpg-key

Code:
# rpm --import /path/to/gpg-key/downloaded
Now key is imported under the directory /etc/pki/rpm-gpg/.

rpm-gpg keys are used to check the authenticity of the rpms.

1. Create a file fedoratest.repo under /etc/yum.repos.d/
2. Add following contents to the repositary

Code:
[My-Repositary]
baseurl="http://fedora.inode.at/fedora/linux/releases/13/Everything/i386/os/"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
Hope this helps !!

Last edited by vinaytp; 09-17-2010 at 06:54 AM.
 
Old 09-17-2010, 09:04 AM   #7
rmknox
Member
 
Registered: May 2010
Posts: 354

Original Poster
Rep: Reputation: 34
Solved

Chris etal - thanks
The icon to mark it solved seems to be missing
 
  


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
Yum install public key issue, not working for ffmpeg sparckis Linux - Newbie 2 10-22-2006 10:49 PM
yum: public key not available Merlinou Linux - Newbie 2 04-06-2006 01:27 PM
yum, local install and public key kulmis Fedora 1 03-19-2006 07:38 AM
yum public gpg key?? Niflheim Fedora 1 03-28-2005 01:46 PM

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

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