nerdexam
CompTIA

XK0-004 · Question #153

A systems administrator installs a simple package, but the Linux system returns the following error: rpmdb . To verify if there is a problem in the RPM database, the systems administrator runs the…

The correct answer is D. cd/var/lib/rpm; rm -f _db*; rpm --rebuilddb; yum clean all. https://unix.stackexchange.com/questions/198703/yum-errorrpmdb-open-failed

Troubleshooting and Diagnostics

Question

A systems administrator installs a simple package, but the Linux system returns the following error: rpmdb . To verify if there is a problem in the RPM database, the systems administrator runs the open fails following command:

Which of the following commands should the systems administrator run NEXT to resolve this issue?

Exhibit

XK0-004 question #153 exhibit

Options

  • Acd/var/lib/rpm; rpm --rebuilddb ; rm -f _db*; yum clean all
  • Bcd/var/lib/rpm; rpm -qd; rpm --rebuilddb; yum clean all
  • Ccd/var/lib/rpm; rpm -qa; rm -f _db*; yum clean all
  • Dcd/var/lib/rpm; rm -f _db*; rpm --rebuilddb; yum clean all

How the community answered

(53 responses)
  • A
    6% (3)
  • B
    11% (6)
  • C
    2% (1)
  • D
    81% (43)

Explanation

https://unix.stackexchange.com/questions/198703/yum-errorrpmdb-open-failed

Topics

#RPM database#rpmdb rebuild#package management#yum

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice