Saturday, January 16, 2016

Verifying Package Attributes

To identify which package the file is associated with:

# rpm -qf /etc/passwd

setup-2.8.71-4.el7.noarch

# rpm -qi setup

To compare the attributes of a file on the current system with the original file in the package database:

# rpm -Vf /etc/passwd

To verify the attributes for all the files included in a package with details:

# rpm -Vv setup

No comments: