I would like a script that will check if the Linux driver RPM is signed or not
- rpm -qp --checksig
- --info will print out everything about it and there is a field for Signature. Which will say None if not signed...or else will mention the key
The script should able to process as an input an individual RPM file, an archived file, folder location, or if the script is run without an input is should check all the RPMs of the directory it is in.
If the script detects an archived file as an input, the script should be able to extract, traverse the content, and validate only the RPM files contained within the archived file. Similar, if the user just provides a folder location.
Need two scripts one that just returns the RPM names that are unsigned after checking if no RPMs are unsigned then return "all RPMs signed".
The other needs to display all the RPMs and the the signature if signed and if not it needs to say none for the respective RPM (just like the info command does).
Have a script that can be used as a base.
I'm in expert in shell scripting and can do it for you in the shortest terms. Contact me for details please and I'm ready to start as soon as possible