It would be nice to create those directories already with the correct permissions so there is no need to manually create them first.
Verify DEB and RPM packages