All rpm packages can run scripts after a package is added or removed. How do I view pre/post install and uninstall rpm file scripts under rpm based Linux distributions?
Read answer to: "Linux RPM: View Script That Run When You Install RPM Files"