LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-25-2006, 07:12 PM   #1
ActiveX
Member
 
Registered: Feb 2006
Posts: 33

Rep: Reputation: 15
GPG keys for updating Fedora


Hello, I am pretty new to linux and I tried updating Fedora4 earlier. After each update downloads, I get a pop-up telling me that the update is not signed with a GPG signature and asks if it should continue. There's got to be a better way than to have to sit at a box clicking the yes button 450 times. What am I doing wrong?

Should I be using a different server where the updates would come signed with GPG signatures??

Should I have not even required the use of GPG signatures??

Does it matter if they are signed??

Any help would be greatly appreciated and I offer my thanks in advance.


Also, I am doing this on a machine that is multibooted, and the grubloader is not controlled by Fedora. I'm assuming that before logging into Fedora again after updating the kernel, that I need to first log into RHEL4 and modify the grub.conf to reflect the new kernel and initrd entries? I dont want to cause any lockups!
 
Old 02-25-2006, 08:45 PM   #2
ActiveX
Member
 
Registered: Feb 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Well, I just accepted all the updates...did I make a mistake by doing that?

I'm sure the exact same issue will come up when updating RHEL4 so everyone is still welcome to weigh in on the subject.
 
Old 02-26-2006, 02:17 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You should have imported the gpg key.
Code:
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
 
Old 02-26-2006, 07:45 AM   #4
ActiveX
Member
 
Registered: Feb 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks reddazz, is that what I'm supposed to type from a terminal? I had thought that I imported the gpg key through the gui interface...and that it was the updates themselves that weren't signed...but I could easily be wrong. Where would I look to first check if the key is already there/being used before running the command?
 
Old 02-26-2006, 09:14 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Yes thats what you are supposed to enter in the CLI. The # only means you should be root so don't enter that. Any official packages from the Fedora development team are always signed with the Fedora GPG key so if you get errors regarding the gpg key, then you have to import it. The same applies for any third party repositories that you add to your system. If you add a yum repo, then you have to go the website of the packager, get their GPG key and then import it. This article has more info regarding gpg keys on Fedora and other related distros. As for checking whether a gpg key key already exists, I am not sure about the exact procedure. It maybe worth taking a look at the rpm or yum manual ("man rpm" or "man yum" at the CLI).
 
Old 02-26-2006, 01:07 PM   #6
ActiveX
Member
 
Registered: Feb 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you very much, that article should help a lot. Hopefully next time I wont have to click all those yes boxes. I didn't run into the problem at all with RHEL4...I thought I did everything the same except I had to register with my RHA subscription before getting the updates. And as for the grub.conf file, it was appended to automatically with both the smp and non-smp kernel updates for both distros after the updates...so should I just keep them all on the boot menu for a few days and then delete the entries for the older kernels if there is no problem with the new ones?
 
Old 02-26-2006, 01:50 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
RHEL4 is different to Fedora because RHN works slightly differently to YUM. As for your kernel grub entries, when you uninstall the kernels that you don't need, their grub entries will be automatically removed.
 
Old 02-26-2006, 02:04 PM   #8
ActiveX
Member
 
Registered: Feb 2006
Posts: 33

Original Poster
Rep: Reputation: 15
What is the proper way to uninstall a kernel...I assume deleting the entries from the "/boot" folder would be the wrong way. I have my rig set up where there is a fat32 share area, a shared /boot (120 meg), a large shared /home (I use unique login names between distros so it hasn't ever been a problem), and a shared ext3 swap area...with each distro having its own root partition and each windows variant also having its own partition.
 
Old 02-26-2006, 02:50 PM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can check which kernels are installed by doing
Code:
#rpm -qa | grep -i kernel
A list of installed kernels will be shown on your screen. To uninstall a kernel you don't need, do
Code:
#rpm -e kernel-version
 
Old 02-26-2006, 03:46 PM   #10
ActiveX
Member
 
Registered: Feb 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Wow, I actually understand those commands and switches....I guess the RHA classes are doing some good. I just wanted to double check one thing though, for "kernel-version" in the uninstall command that you gave me, do I write the kernel name exactly as it is written in the "/boot" directory, such as: "vmlinuz-2.6.9-22.ELsmp".
 
Old 02-27-2006, 02:49 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by ActiveX
Wow, I actually understand those commands and switches....I guess the RHA classes are doing some good. I just wanted to double check one thing though, for "kernel-version" in the uninstall command that you gave me, do I write the kernel name exactly as it is written in the "/boot" directory, such as: "vmlinuz-2.6.9-22.ELsmp".
No, don't use the versions in /boot. Use the output from your screen after running the commands above. On my Suse box, if I run
Code:
#rpm -qa | grep -i kernel
I get the following output
Code:
kernel-default-2.6.13-15.7
kernel-update-tool-0.9-10
kernel-source-2.6.13-15.7
kernel-default-nongpl-2.6.13-15.7
So to remove the first kernel, I would do
Code:
#rpm -e kernel-default-2.6.13-15.7
 
Old 02-27-2006, 07:53 AM   #12
ActiveX
Member
 
Registered: Feb 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Ahh, I'm glad I double-checked with you and I thank you for the help. I will give it a few days on the new kernels and if everything is good I will use the removal commands that you illustrated. So far the only problem that I have with RHEL or fedora is a keyboard issue with RHEL...but it existed before the kernel switch so it is not from the updated kernel. Thanks again man.
 
Old 02-28-2006, 09:03 AM   #13
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
It is possible to remove a kernel from your boot options but keep it installed simply by commenting out its entry in /boot/grub/grub.conf.

If you installed a kernel via yum, I advise removing it via yum also, i.e. use 'yum erase kernel-version' not 'rpm -e kernel-version'.
 
Old 02-28-2006, 10:10 AM   #14
ActiveX
Member
 
Registered: Feb 2006
Posts: 33

Original Poster
Rep: Reputation: 15
The kernels that I installed for both Fedora and RHEL were retrieved simply by running the integrated "Up2date" interface. Thats all I really know to mess with right now but that will change as I progress through the classes.
 
Old 02-28-2006, 11:17 AM   #15
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by Gethyn
It is possible to remove a kernel from your boot options but keep it installed simply by commenting out its entry in /boot/grub/grub.conf.

If you installed a kernel via yum, I advise removing it via yum also, i.e. use 'yum erase kernel-version' not 'rpm -e kernel-version'.
YUM is just a wrapper for rpm with a few extras, so removing a kernel using rpm or yum results in the same thing. Anyway I am sure RHEL4 does not use YUM as default.
 
  


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
GPG Keys matsko Linux - General 4 12-23-2005 07:53 PM
gpg keys pr0xibus Fedora 1 10-04-2005 10:45 AM
gpg keys in ubuntu. greythorne Ubuntu 0 07-09-2005 05:13 AM
yum gpg keys? Infernal211283 Linux - Newbie 3 02-14-2005 12:23 AM
Using GPG KEYS 0n Install CD browser Fedora 1 01-23-2005 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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