How can I check that the "enabled=1" repositories have "gpgcheck=1" in the "/etc/yum.repos.d/" directory (and the "gpgkey=" file exist or not?)?
Q: I'm searching for a solution to do this (oneliner?), I mean to list all the "enabled=1" repositories and "gpgcheck" status, and does the "gpgkey=XXX" file exist or not? - the problem is that that one .repo file could contain several repositories!
p.s.: afaik the "gpgkey=XXX" -> XXX could only be a local file, not an url through http... but fix me if I'm wrong..