23

Trying to uninstall zarafa mail server.

I use yum list installed to view the already installed packages.

After which I use yum erase zarafa*

It picks up all the packages but returns:

Error in PREUN scriptlet in rpm package zarafa-dagent
Error in PREUN scriptlet in rpm package zarafa-gateway
Error in PREUN scriptlet in rpm package zarafa-monitor
Error in PREUN scriptlet in rpm package zarafa-server
Error in PREUN scriptlet in rpm package zarafa-spooler
Error in PREUN scriptlet in rpm package zarafa-ical
zarafa-ical-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-ical-7.1.9-1.el6.i686                                                                                                                                                1/6 
zarafa-spooler-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-spooler-7.1.9-1.el6.i686                                                                                                                                             2/6 
zarafa-server-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-server-7.1.9-1.el6.i686                                                                                                                                              3/6 
zarafa-monitor-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-monitor-7.1.9-1.el6.i686                                                                                                                                             4/6 
zarafa-gateway-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-gateway-7.1.9-1.el6.i686                                                                                                                                             5/6 
zarafa-dagent-7.1.9-1.el6.i686 was supposed to be removed but is not!
  Verifying  : zarafa-dagent-7.1.9-1.el6.i686                                                                                                                                              6/6 

Failed:
  zarafa-dagent.i686 0:7.1.9-1.el6      zarafa-gateway.i686 0:7.1.9-1.el6     zarafa-ical.i686 0:7.1.9-1.el6     zarafa-monitor.i686 0:7.1.9-1.el6     zarafa-server.i686 0:7.1.9-1.el6    
  zarafa-spooler.i686 0:7.1.9-1.el6  
1
  • 1
    searched for Error in PREUN scriptlet in rpm package ddclient and came here - Thanks. Mar 21, 2016 at 22:58

2 Answers 2

65

It seems like somehow yum cached data and the rpm database got out of sync with each other I guess. Try running the next commands:

su -c 'yum clean all && rpm --rebuilddb'
su -c 'package-cleanup --problems'

Then run:

su -c 'yum erase zarafa*'

Edit #1: Try running the next command:

# su -c 'yum --setopt=tsflags=noscripts remove zarafa*'

If that doesn't work, try this:

# su -c 'rpm -e --noscripts zarafa*'
8
  • good try, but it still failed
    – tread
    Jul 17, 2014 at 9:42
  • Yes, exactly the same
    – tread
    Jul 17, 2014 at 12:09
  • 6
    And the command from my Edit #1?
    – Itai Ganot
    Jul 17, 2014 at 12:10
  • 1
    --setopt=tsflags=noscripts is great, thank you!
    – andrej
    Jun 1, 2015 at 9:00
  • 10
    yum --setopt=tsflags=noscripts remove <pkgname> worked for me Mar 21, 2016 at 23:28
11

I did a rpm -ql <packagename> to see the package original contents.

manually deleted any left over file.

ran yum with the noscripts flag as described above, so the script doesn't fail.

yum --setopt=tsflags=noscripts remove <packagename>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.