# Rebuild yum/rpm database

DevFeed: [Rebuild yum/rpm database](<https://devfeed.tech/articles/rebuild-yum-rpm-database-27619.md>)

Original publisher: [Read original article](<https://gagor.pro/2014/04/rebuild-yum-rpm-database/>)

Author: Tom

Published: 2014-04-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Process](<https://devfeed.tech/topics/process.md>), [.env](<https://devfeed.tech/topics/dotenv.md>)

Tags: [backup](<https://devfeed.tech/tags/backup.md>), [centos](<https://devfeed.tech/tags/centos.md>), [files](<https://devfeed.tech/tags/files.md>), [linux](<https://devfeed.tech/tags/linux.md>), [process](<https://devfeed.tech/tags/process.md>), [rebuild](<https://devfeed.tech/tags/rebuild.md>), [repair](<https://devfeed.tech/tags/repair.md>), [run](<https://devfeed.tech/tags/run.md>), [update](<https://devfeed.tech/tags/update.md>), [var](<https://devfeed.tech/tags/var.md>)

## AI overview

A troubleshooting guide for repairing a corrupted yum/RPM package database that causes package updates to hang. It recommends rebuilding the RPM database, cleaning yum metadata, updating packages, and optionally backing up the database files before removal.

## Source excerpt

When I was trying to update packages on one host I've stuck with yum hung on update. I run strace and see: strace -p 43734 Process 43734 attached - interrupt to quit futex(0x807c938, FUTEX_WAIT, 1, NULL <unfinished ...> Process 43734 detached It looks like yum database was corrupted, to repair this run: rm -f /var/lib/rpm/__db* rpm --rebuilddb yum clean all yum update Instead rm on db-files you could use gzip to have backup of these files.