thiru thiru - 3 months ago 20
Linux Question

rpm verify - ignore config files

From

man rpm



rpm {-V|--verify} [select-options] [verify-options]


Files that have been changed after installation will be listed by this rpm verify command.

But this lists the configuration files also (files that are marked with
%config
in this
spec
file.

Is there a way to skip/ignore the verification for the
config
files?

Answer

yes and no:

  • I don't know any method for ignoring some files with rpm -V
  • But in your spec file you can add verify attributes for some files to specify how they should be verified.

This way you could specify for example to check only the owner and group of your config file:

%verify(owner group) /path/to/your/config-file

for further reference; look here: http://www.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html

Comments