Troubleshoot ruei-install.sh, Debug RPM Pre/Post-Install Scripts, eg. ux-collector & ux-core rpms
By sthieme on Jan 21, 2013
To remove a RUEI system, please follow the steps outlined in Appendix H Removing RUEI From Systems of the RUEI Installation guide.
Usually it boils down to run step number 3.)
Remove the installed RUEI RPMs by issuing the following command as the root user:
rpm -qa | grep ^ux- | xargs rpm -e
If parts of the installed RPMs were removed manually or corrupted, errors might be encountered in the above step.
In this case, you should issue the following command:
rpm -qa | grep ^ux- | xargs rpm -e --noscripts
Note that part of the installation may remain after issuing the above command.
In case you want to troubleshoot the pre/post-scripts the following two commands might be useful, where ux-core is an example rpm file of RUEI:
rpm -Uhvv ux-core-184.108.40.206.1-20120109.x86_64.rpm > OutputOfScripts
rpm -qp --scripts ux-core-220.127.116.11.1-20120109.x86_64.rpm > ListOfScripts