LinuxQuestions.org
Visit Jeremy's Blog.
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, 01: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, 02:00 PM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

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, 02: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 04:43 PM.
 
Old 09-17-2010, 01:32 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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, 07:31 AM   #5
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

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 08:59 AM.
 
Old 09-17-2010, 07:50 AM   #6
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

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 07:54 AM.
 
Old 09-17-2010, 10: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


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


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