I accidentally accpeted an unverified repository key in zypper:
sudo zypper dup
[sudo] password for root:
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Repository Foobaroo does not define 'gpgkey=' URLs.
Warning: File 'repomd.xml' from repository 'Foobaroo' is signed with an unknown key 'SuperJesus123'.
Note: Signing data enables the recipient to verify that no modifications occurred after the data
were signed. Accepting data with no, wrong or unknown signature can lead to a corrupted system
and in extreme cases even to a system compromise.
Note: File 'repomd.xml' is the repositories master index file. It ensures the integrity of the
whole repo.
Warning: We can't verify that no one meddled with this file, so it might not be trustworthy
anymore! You should not continue unless you know it's safe.
File 'repomd.xml' from repository 'Foobaroo' is signed with an unknown key 'SuperJesus123'.
Continue? [yes/no] (no): yes
How can I undo this decision in zypper/rpm and reset the “key trusted” flag for this repository?
Thank you for your response! I think this is good advice.
In my case it didn’t work because my particular repo stored the key in its metadata cache and not in rpmkeys. I cleaned that cache and it reprompted me for the key. So I guess this is resolved