I'm developing a workflow for installing software on Linux that is not available as an RPM, and capturing the system changes to then package as an RPM for internal deployment.
One idea I have for doing this is to leverage btrfs, take a snapshot before, and a snapshot after the install, diff the snapshots, and use that (with some commonsense exclusions) to build an rpm.
Is there a more obvious way of doing this?