Page 1 of 1

rpm -Va returns unknown attribute

Posted: 2019/04/04 17:41:53
by MartinR
Running rpm -Va on my machine returns precisely one file with the attribute "n". man rpm doesn't list what "n" means, does anyone here know?

Re: rpm -Va returns unknown attribute

Posted: 2019/06/07 09:14:04
by MartinR

Code: Select all

# rpm -Va
  ...
  n /etc/amanda/DailySet1/label-templates
  ...

Re: rpm -Va returns unknown attribute

Posted: 2019/06/07 10:41:47
by TrevorH
Does it actually appear on a separate line like that?

Re: rpm -Va returns unknown attribute

Posted: 2019/06/07 12:50:49
by MartinR
Sorry, I cut that from a report. The actual line is:

Code: Select all

missing   n /etc/amanda/DailySet1/label-templates
There are 28 "missing" lines in total, all the others have either no attribute or else one that is documented:

Code: Select all

missing     /var/log/vbox
missing   c /etc/ganglia/conf.d/multicpu.conf
for example. If it helps, label-templates is a directory, but then so is /etc/amanda/DailySet1 which has no attribute.

Re: rpm -Va returns unknown attribute

Posted: 2019/06/07 13:05:10
by TrevorH
Ah, so 'n' is a type of file not an attribute. If it was 'c' then it would be a config file, 'd' for doc, 'n' for...

And, no, don't know either.

Re: rpm -Va returns unknown attribute

Posted: 2019/06/07 13:09:04
by MartinR
Err, the man page says:

Code: Select all

       The format of the output is a string of 9 characters, a possible attribute marker:

       c %config configuration file.
       d %doc documentation file.
       g %ghost file (i.e. the file contents are not included in the package payload).
       l %license license file.
       r %readme readme file.

       from  the package header, followed by the file name.
which is why I called it an attribute. Mind, in order to confuse poor users the man page then refers to the tests comparing attributes, so all is as clear as mud!