26

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

72

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*'
7
  • 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
  • 11
    yum --setopt=tsflags=noscripts remove <pkgname> worked for me Mar 21, 2016 at 23:28
  • Where are the tsflags defined? I can't seem to find good documentation for them.
    – Sergio
    May 11, 2018 at 21:18
14

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>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .