Removing a package results in the below error
---
Error in PREUN scriptlet in rpm package <package>
<package> was supposed to be removed but is not.
---
Issue seems like yum cached data and the rpm database got out of sync with each other. Execute the below commands,
1.
----
#yum clean all => Clean cached files from repository.
Take backup of "/var/lib/rpm" before executing below command
#rpm --rebuilddb => if rpm database get corrupted and stops all the functionality of packages in system, this rebuild the database indices from the installed package headers.
package-cleanup --problems => List dependency problem in local rpm db. If any problem found, it will exit with code 1.
----
if that does not work, remove using the below command.
2. yum --setopt=tsflags=noscripts remove package => This removes without checking the dependency files.
3. if that does not work, remove using the below command.
#rpm -e --noscripts <package>
---
Error in PREUN scriptlet in rpm package <package>
<package> was supposed to be removed but is not.
---
Issue seems like yum cached data and the rpm database got out of sync with each other. Execute the below commands,
1.
----
#yum clean all => Clean cached files from repository.
Take backup of "/var/lib/rpm" before executing below command
#rpm --rebuilddb => if rpm database get corrupted and stops all the functionality of packages in system, this rebuild the database indices from the installed package headers.
package-cleanup --problems => List dependency problem in local rpm db. If any problem found, it will exit with code 1.
----
if that does not work, remove using the below command.
2. yum --setopt=tsflags=noscripts remove package => This removes without checking the dependency files.
3. if that does not work, remove using the below command.
#rpm -e --noscripts <package>