SUG: Automatic RPM database verification and repair