I heard something about libzypp parsing /v/l/zypp/history, but I'm not sure if it's really implemented or "just" an idea that was never implemented. Anyway, I searched for lines about deleting packages, and an example is: 2017-08-05 23:26:45|remove |libGLEW1_13|1.13.0-2.7|x86_64|| so the general (quite simple) format is $date $time|remove |$package|$version|$arch|| Also, lines starting with # can be added as comments. This is used for things like %post output, but could also be used for comments by purge-kernels. That said - no promises about a patch ;-) It shouldn't be hard, but my perl is a bit rusty and I suffer from the usual EBUSY error you probably also know ;-)