Search notes:

/var/lib/rpm

/var/lib/rpm stores the RPM database (in either SQLite or Berkley DB format)?
A corrupted database can be rebuilt with
rpm --rebuilddb

(SQLite) Schema

The rpm database schema has a «master» table:
CREATE TABLE IF NOT EXISTS 'Packages' (hnum INTEGER PRIMARY KEY AUTOINCREMENT, blob BLOB NOT NULL);
Then, there are quite a number of child tables with a foreign key referencing Packages:
All tables have the same definition:
CREATE TABLE IF NOT EXISTS <tabname> (key 'TEXT' NOT NULL, hnum INTEGER NOT NULL, idx INTEGER NOT NULL, FOREIGN KEY (hnum) REFERENCES 'Packages'(hnum));
The two table Installtid and Sigmd5 differ in that the datatype of key is not TEXT but BLOB.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/fh...', 1758210065, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/fhs/var/lib/rpm/index(69): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78