Skill 1 in course 3.3: Software and Applications
Package and RPM Database Repair
Detect and repair damaged packages, an unreadable RPM database, and broken repository or update transactions.
You will be able to
- Verify installed files against the package database, read the result codes and restore a damaged file without breaking local configuration.
- Check package signatures, import keys, and rebuild a readable RPM database.
- Diagnose repository, GPG, dependency and interrupted-transaction failures in dnf, and roll back with history.
Lessons
- 01Verifying and repairing installed packagesRead rpm -V results, find which package owns a file, and restore damaged files without losing local configuration.
rpm -Vrpm -Varpm -Vfrpm -qfrpm -qcrpm -qd0/3 exercises - 02The RPM database, signatures and GPG keysUnderstand where RPM keeps its state, check package signatures, import keys and recover from an unreadable database or a stale lock.
rpm -Krpm --importrpm -qa gpg-pubkey*rpm --rebuilddbrpm -qa --lastrpm -qi0/3 exercises - 03Repositories, dnf failures and rolling backDiagnose repository, metadata, GPG and dependency errors, build a local repository, and undo or redo a transaction.
dnf repolistdnf repoquerydnf clean alldnf makecachednf historydnf history undo0/3 exercises