Issue
After installing or upgrading the agent you find a script error indicating a failure for PREUN or any other script.
Environment
Red Canary Linux EDR
Resolution
run the following command:
$ rpm -e --noscripts <file name>
-e : removes package from the system. removes all traces of package from the RPM database.
--noscript : does not execute pre- and post-uninstall scripts
Cause
On failure the yum command may not be able to fully remove the package.