Linux RPM Uninstall of BC 4.4.5 and 4.4.6 Errors
PREUN scriptlet error in the bcompare RPM package
Beyond Compare 4's RPM packages for versions 4.4.5 and 4.4.6 have an error in their script that prevents a clean uninstall when removing or updating from those versions. This will be fixed in BC 4.4.7 and any future updates, but will require running a terminal command if 4.4.5 or 4.4.6 have been installed on the system using the RPM package.
The Error text will resemble:
Running scriptlet: bcompare-4.4.6-27483.x86_64
/var/tmp/rpm-tmp.yGTcJm: line 63: syntax error near unexpected token `nautilus'
/var/tmp/rpm-tmp.yGTcJm: line 63: ` nautilus caja nemo'
error: %preun(bcompare-4.4.6-27483.x86_64) scriptlet failed, exit status 2
Error in PREUN scriptlet in rpm package bcompare
Verifying : bcompare-4.4.6-27483.x86_64
Manual Removal by skipping PREUN script
To remove BC 4.4.5 or 4.4.6 cleanly from your system, please try the following commands, depending on your distro. Replace the exact package version with your current package version. Note: The program name can be bcompare, bcompare-4.4.5-27371.x86_64, or bcompare-4.4.6-27483.x86_64, depending on if one or both are installed on your system.
sudo rpm -e --nopreun bcompare-4.4.5-27371.x86_64
sudo rpm -e --noscripts --nodeps bcompare-4.4.6-27483.x86_64
sudo dnf remove bcompare --setopt=tsflags=noscripts
When running the manual removal, skipping the script may show the error:
warning: file kde_context_menu: remove failed: No such file or directory
This can be ignored and will be dealt with during any update or removal of BC 4.4.7+.