Product SiteDocumentation Site

9.5.5. Verifying the %files section

You can use the %verify directive to control which tests RPM uses when verifying a package.
Cross Reference
See Chapter 4, Using the RPM Database for more on package verification.
The %verify directive names the tests to include or not include. Table 10-4 lists the tests.
Table 10-4 Package verification tests
Test
Usage
group
Verifies the group of the file
maj
Verifies the file’s major device number
md5
Verifies the file’s MD5 checksum
min
Verifies the file’s minor device number
mode
Verifies the file mode, or permissions
mtime
Verifies the file’s last modification time
owner
Verifies the owner of the file
size
Verifies the file’s size
symlink
Verifies a symbolic link
With the %verify directive, you can name test, such as shown following:
%verify(owner group size) /etc/yp.conf
This example limits the tests to owner, group, and size. (The default is to perform all the tests.) You can also use the word not to specify that RPM should not run one or more tests. For example:
%verify(not owner) /etc/yp.conf
This example turns off just the owner test.