Bug 76899
Summary: | rpm --import creates duplicate gpg-pubkey entries without checking | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Bert de Bruijn <bob> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | milan.kerslager, mitr |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-10-28 23:56:38 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Bert de Bruijn
2002-10-28 23:56:32 UTC
Erase multiple entries with --allmatches, reimport a single instance. The real problem is distributing public keys with packages, not fixing --import behavior. Jeff, I don't understand what you mean by "the real problem is distributing public keys with packages" ? The /usr/share/doc/rpm-4.1/RPM-GPG-KEY was only an example, I also have public keys that I got from the webpages of authors and packagers. Previous versions of rpm used the users gnupg keyring, so one could get keys from keyservers, but now that rpm has its own internal "keyring", you can only import keys from files. Anyway, I understand the WONTFIX, the -e -allmatches + re-import works (as I said in the original report). Using the package version as a counter would mean you could delete individual copies, but that's not an elegant solution. Making rpm refuse to --import keys that are already in the db would be cleaner IMHO. The old behavior was better IMHO in some cases. At least you had only one place with keyrings in the system. Current implementation is better when trying to verify package on broken/compromited system. I underestand if this is the case. rpmbuild still uses external gpg... The better way could be an option to force use external program. The old handling worked fine so why to drop it completly. In the school the teacher told me that Unix uses external simple programs and big programs with cumulated functions are not good (like sendmail)... |