1

What is the difference between %attr and %defattr and are the rights applied recursively to a file structure delivered by an rpm?

2 Answers 2

2

%defattr is a blanket for which its attributes will be applied across all files listed, while %attr is for specifying attributes only for a single file.

1

%defattr, as the name implies, is the default attributes for all files in the package. What do mean by "applied recursively"? If you use a directory name, it will be used for all the files in the directory.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .