Doesn't seem to be smart to write shell scripts emulating what rpm would do https://github.com/cockpit-project/cockpit/commit/ff20531c4cbb9652741d65896fda6c90c60638da