Since RPM 4.7, there has been the ability to specify that a file in an RPM package should be installed with capabilities set (via %caps
).
Is there a similar feature for Debian packages?
Since RPM 4.7, there has been the ability to specify that a file in an RPM package should be installed with capabilities set (via %caps
).
Is there a similar feature for Debian packages?
Sadly, no. There isn't a way to make dpkg
use file capabilities, and apparently nobody has ever asked, though the library itself is available.
I skimmed through the Debian Policy Manual, and there isn't a single entry that reference this feature. That said, you can use dh_override_install
(if you use debhelper
), pre/post maintainer scripts or modifying the debian/rules
file to reproduce this behavior, but I don't see any obviously easy way to implement it.
cmake
/cpack
. I was hoping for a way to do this in my cpack rules that would work for both RPM
and DEB
. If I do it in maintainer scripts I have to do it twice, or at least arrange for the same maintainer script to be used by both package types. I'll file a bug, thanks. By the way, I couldn't find any mention of this in any RPM
documentation either, other than the release notes referenced above. So perhaps the Debian Policy Manual
is similarly not definitive.
Commented
Sep 19, 2014 at 16:31