rm -rf /var/lib/rpcbind/* on %preun will let RPM do its job without complain. ------ D: %preun(rpcbind-0.2.1-0.fc19.x86_64): scriptlet start D: %preun(rpcbind-0.2.1-0.fc19.x86_64): execv(/bin/sh) pid 2974 + '[' 0 -eq 0 ']' + /bin/systemctl --no-reload disable rpcbind.service + /bin/systemctl stop rpcbind.service + /usr/sbin/userdel rpc + /usr/sbin/groupdel rpc + : + rm -rf /var/lib/rpcbind D: %preun(rpcbind-0.2.1-0.fc19.x86_64): waitpid(2974) rc 2974 status 0 Erasing : rpcbind-0.2.1-0.fc19.x86_64 1/2 D: erase 000700 0 ( 0, 0) 0 /var/lib/rpcbind warning: file /var/lib/rpcbind: remove failed: No such file or directory D: erase 100644 1 ( 0, 0) 2388 /usr/share/man/man8/rpcinfo.8.gz D: erase 100644 1 ( 0, 0) 1581 /usr/share/man/man8/rpcbind.8.gz D: erase 100644 1 ( 0, 0) 112 /usr/share/doc/rpcbind-0.2.1/README D: erase 100644 1 ( 0, 0) 9045 /usr/share/doc/rpcbind-0.2.1/ChangeLog D: erase 100644 1 ( 0, 0) 106 /usr/share/doc/rpcbind-0.2.1/AUTHORS D: erase 040755 2 ( 0, 0) 4096 /usr/share/doc/rpcbind-0.2.1 D: erase 100755 1 ( 0, 0) 28496 /usr/sbin/rpcinfo D: erase 100644 1 ( 0, 0) 132 /usr/lib/systemd/system/rpcbind.socket D: erase 100644 1 ( 0, 0) 259 /usr/lib/systemd/system/rpcbind.service D: erase 100755 1 ( 0, 0) 58112 /sbin/rpcbind D: erase 100644 1 ( 0, 0) 73 /etc/sysconfig/rpcbind D: %postun(rpcbind-0.2.1-0.fc19.x86_64): scriptlet start D: %postun(rpcbind-0.2.1-0.fc19.x86_64): execv(/bin/sh) pid 2984 + /bin/systemctl daemon-reload + '[' 0 -ge 1 ']' D: %postun(rpcbind-0.2.1-0.fc19.x86_64): waitpid(2984) rc 2984 status 0
(In reply to Marcos Mello from comment #0) > rm -rf /var/lib/rpcbind/* on %preun will let RPM do its job without complain. There is one: %preun %systemd_preun rpcbind.service rpcbind.socket if [ $1 -eq 0 ]; then /usr/sbin/userdel rpc 2>/dev/null || : /usr/sbin/groupdel rpc 2>/dev/null || : /usr/bin/rm -f /var/lib/rpcbind/* fi