in indexhtml-7.1-9mdk.noarch.rpm : -------------------------------- preinstall script (through /bin/sh): rmdir /usr/doc/HTML > /dev/null 2> /dev/null In case of an update it gives an error, which is normal, as /usr/doc/HTML is not empty ! D: running preinstall script (if any) + rmdir /usr/doc/HTML execution of indexhtml-7.1-9mdk script failed, exit status 1 rmdir should be replaced by 'rm -rf'