PDA

View Full Version : How to remove an unusual RPM gpg-pubkey?



newyilang
18th May 2006, 12:38 PM
Well, I am using Fedora Core 5. I imported the Livna GPG pubkey for a second time. I wanted to remove one of them, so I typed #rpm -qa gpg-pubkey

Afer I typed ENTER, there were two same key appeared on the screen, just the same. However, when I tried to remove the gpg-key, using #rpm -e gpg-pubkey-123456(which stands for numbers)

Then I was prompted that "gpg-pubkey-123456 specifies multiple packages", and failed.

How to remove additional but the same gpg-key? :rolleyes:


Thanks!

havenoclu
18th May 2006, 12:54 PM
have you tried to throw a --nodeps or --force on your rpm -e command? wouldn't be very clean, but it may work.

newyilang
18th May 2006, 01:05 PM
I have tried --nodeps and --force, but no use.

Luckily, this problem was settled by one of my friend. #rpm -e --allmatches gpg-pubkey, then all of the rpm gpg key was cleaned.

Good, just re-import the GPG key which I need, then the thing was settled perfectly.

havenoclu
18th May 2006, 01:35 PM
I have tried --nodeps and --force, but no use.

Luckily, this problem was settled by one of my friend. #rpm -e --allmatches gpg-pubkey, then all of the rpm gpg key was cleaned.

Good, just re-import the GPG key which I need, then the thing was settled perfectly.

good to hear!