nerdexam
CompTIACompTIA

XK0-005 · Question #571

XK0-005 Question #571: Real Exam Question with Answer & Explanation

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 d

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

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 Manager#Package Management#Transaction History#System Reversion

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions