in Fedora

Deleting a problematic package on Fedora

What if we have a package that yum/dnf does not want to uninstall due to the broken dependencies or an uninstall scriptlets that won’t work?

The error itself can look like:

error: %preun(PACKAGE) scriptlet failed, exit status 1

If that happens, use either --nodeps or --noscripts options with rpm -e (erase):

# rpm -e --nodeps --noscripts PACKAGE

Subscribe for insights on Ruby, Rails, JavaScript, and more. Sent no more than once in 2 months.

Write a Comment