Run command before/after installing/removing a package

Hello Flatpackers :slight_smile:

Installing my new workstation from a bare Kali Linux KDE install, I very much like the snapper (http://snapper.io) support and it’s integration with APT, making it possible to automatically create snapshots before and after apt install/remove invocations.

As I’d like to have the same behavior with Flatpack, I was wondering if there was some ways to plug pre and post actions into package installation and removal ?

Thanks in advance for your answer and all the more for all the work and dedication in the great piece of Open Source software

TY
J

I don’t really get why you would want to make a snapshot of Flatpak apps too. If you are using snapshots for rollback purpose, Flatpak apps are containerized, it should not mess with your system package.