<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Fix_corrupted_RPM_database</id>
		<title>Fix corrupted RPM database - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Fix_corrupted_RPM_database"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Fix_corrupted_RPM_database&amp;action=history"/>
		<updated>2026-06-04T10:51:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Fix_corrupted_RPM_database&amp;diff=660&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==Fix corrupted RPM database==  If rpm / yum command hangs during operations or you see error messages - it means your rpm database corrupted. Below was the error I was gettin...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Fix_corrupted_RPM_database&amp;diff=660&amp;oldid=prev"/>
				<updated>2014-04-14T19:09:29Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Fix corrupted RPM database==  If rpm / yum command hangs during operations or you see error messages - it means your rpm database corrupted. Below was the error I was gettin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Fix corrupted RPM database==&lt;br /&gt;
&lt;br /&gt;
If rpm / yum command hangs during operations or you see error messages - it means your rpm database corrupted. Below was the error I was getting while running an strace on the process to see where/why it was hanging.&lt;br /&gt;
&lt;br /&gt;
 stat(&amp;quot;/var/lib/rpm/Packages&amp;quot;, {st_mode=S_IFREG|0644, st_size=47439872, ...}) = 0&lt;br /&gt;
 open(&amp;quot;/var/lib/rpm/Packages&amp;quot;, O_RDONLY) = 4&lt;br /&gt;
 fcntl(4, F_SETFD, FD_CLOEXEC) = 0&lt;br /&gt;
 read(4, &amp;quot;\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10\0\0\373%\0\0&amp;quot;..., 512) = 512&lt;br /&gt;
 close(4) = 0&lt;br /&gt;
 open(&amp;quot;/var/lib/rpm/Packages&amp;quot;, O_RDONLY) = 4&lt;br /&gt;
 fcntl(4, F_SETFD, FD_CLOEXEC) = 0&lt;br /&gt;
 fstat(4, {st_mode=S_IFREG|0644, st_size=47439872, ...}) = 0&lt;br /&gt;
 futex(0x2ad945ad8a74, FUTEX_WAIT, 1, NULL^X&lt;br /&gt;
&lt;br /&gt;
I noticed that it was hanging on the /var/lib/rpm/Packages&lt;br /&gt;
&lt;br /&gt;
===Let fix it===&lt;br /&gt;
&lt;br /&gt;
/var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database:&lt;br /&gt;
&lt;br /&gt;
 rm -f /var/lib/rpm/__db*&lt;br /&gt;
&lt;br /&gt;
Once those have been deleted, you will want to rebuild them.&lt;br /&gt;
&lt;br /&gt;
 rpm --rebuilddb &lt;br /&gt;
&lt;br /&gt;
Now if you like me, it appears that is just hanging as it can take a while so I ran strace on the process&lt;br /&gt;
&lt;br /&gt;
 strace rpm --rebuilddb&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>