Suppose I have an RPM with an elaborate %preinst script which does all kinds of things to the file-system (rm, ln, mv, etc). And suppose it fails (so the package is not installed), but after some things were done and others not (e.g., an important file was rm'ed but not replaced). Is there a way to undo the changes of the %preinst script ? Is there any script, maybe named %unpreinst, or some other method to do this? Thanks, /Danny