nerdexam
CompTIA

XK0-005 · Question #747

After trying to install an RPM package unsuccessfully, a systems administrator verifies the integrity of the package's database. The administrator discovers that the database is corrupted and needs…

The correct answer is C. rpmdb --rebuilddb. rpmdb --rebuilddb is the correct command. It rebuilds the RPM database from the package header files already installed on the system, which recovers from database corruption. 'rpmdb -D rebuild' (A) is not a valid rpmdb syntax. 'rpmdb --initdb' (B) creates a new, empty database…

Troubleshooting

Question

After trying to install an RPM package unsuccessfully, a systems administrator verifies the integrity of the package's database. The administrator discovers that the database is corrupted and needs to be recreated. Which of the following commands will help accomplish this task?

Options

  • Arpmdb -D rebuild
  • Brpmdb --initdb
  • Crpmdb --rebuilddb
  • Drpmdb --exportdb

How the community answered

(21 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    90% (19)

Explanation

rpmdb --rebuilddb is the correct command. It rebuilds the RPM database from the package header files already installed on the system, which recovers from database corruption. 'rpmdb -D rebuild' (A) is not a valid rpmdb syntax. 'rpmdb --initdb' (B) creates a new, empty database and does not restore package records from existing installed packages - using it on a live system would lose all package tracking data. 'rpmdb --exportdb' (D) exports the current database contents and cannot be used to fix corruption.

Topics

#RPM#Package Management#Database Repair#Linux Administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice