nerdexam
CompTIA

XK0-005 · Question #1566

A systems administrator made some unapproved changes prior to leaving the company. The newly hired administrator has been tasked with revealing the system to a compliant state. Which of the…

The correct answer is D. dnf history and dnf history undo last. The commands that will list and remove the corresponding packages are dnf history and dnf history undo last. The dnf history command will display a list of all transactions performed by dnf, such as installing, updating, or removing packages. Each transaction has a unique ID, a…

System Management

Question

A systems administrator made some unapproved changes prior to leaving the company. The newly hired administrator has been tasked with revealing the system to a compliant state. Which of the following commands will list and remove the correspondent packages?

Options

  • Adnf list and dnf remove last
  • Bdnf remove and dnf check
  • Cdnf info and dnf upgrade
  • Ddnf history and dnf history undo last

How the community answered

(36 responses)
  • A
    6% (2)
  • B
    14% (5)
  • C
    8% (3)
  • D
    72% (26)

Explanation

The commands that will list and remove the corresponding packages are dnf history and dnf history undo last. The dnf history command will display a list of all transactions performed by dnf, such as installing, updating, or removing packages. Each transaction has a unique ID, a date and time, an action, and a number of altered packages. The dnf history undo last command will undo the last transaction performed by dnf, meaning that it will reverse all package changes made by that transaction. For example, if the last transaction installed some packages, dnf history undo last will remove them.

Topics

#dnf#package management#system administration#transaction history

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice