Monday, 2 September 2013

Rebuild RPM DB

This may need to be done in instances where simple commands such as rpm -qa hang. Steps:-
  1. Kill all rpm and yum processes
  2. yum clean all
  3. rm -f /var/lib/rpm/__db*
  4. rpm -v --rebuilddb
  5. yum makecache