I'd like to be able to, when a program such as an installer is ran, track the list of the modifications made to my filesystem so that I can revert them afterwards.
EDIT: This concerns a non-packaged program. I use apt-get as far as I can.
Ideally I'd like to be able to do something like:
(sudo) catch-modifs some-installer.bin > fsmodifs.patch
And then:
(sudo) revert-modifs fsmodifs.patch
Is there a convenient way to do that?