tar cvzf rpmdb-backup.tar.gz /var/lib/rpm
rpm -qa | sort
The first line is to backup your database
The second to remove locks
The third to rebuild your database
The fourth to check if all is ok
Tired of green over blue colors in default Ubuntu shell for directories ? Just type this from your shell console to update your bash profi...