The command rpm -V (The options -y and –verify are equivalent) verifies an installed package.
The purpose would be to see if the system configuration accurately reflects the contents of the RPM database. If the system configuration doesn’t match the database, then we can reach one of two conclusions: