Troubleshooting

An administrator adds a vendor's internal package repository on an RPM-based server. Running dnf install for a package from it fails with "Public key for package.rpm is not installed," and the repository file has gpgcheck=1. Which action BEST resolves the problem while keeping package verification in place?

Show the answer

Correct answerC. Verify the key fingerprint with the vendor, then import the key with rpm --import

The package signature cannot be verified because the vendor's public key is missing, so importing the key after confirming its fingerprint fixes the error and keeps verification. Cleaning the cache does not add a key, and disabling the check removes the protection.