Skip to content

Instantly share code, notes, and snippets.

@reilee
Created February 27, 2020 06:25
Show Gist options
  • Save reilee/4919ab80e9bd7208f976df2745dbba5e to your computer and use it in GitHub Desktop.
Save reilee/4919ab80e9bd7208f976df2745dbba5e to your computer and use it in GitHub Desktop.
rebuild RPM database
cd /var/lib/rpm/
## backup
for i in `ls | grep 'db.'`;do mv $i $i.bak;done
rpm --rebuilddb
yum clean all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment