CompTIA Linux+ (XK0-005) — Question 53
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?
Answer options
- A. dnf list and dnf remove last
- B. dnf remove and dnf check
- C. dnf info and dnf upgrade
- D. dnf history and dnf history undo last
Correct answer: D
Explanation
The correct answer is D because the 'dnf history' command provides a record of all package transactions, and 'dnf history undo last' can revert the most recent changes. Options A, B, and C do not effectively target the removal of last changes made, as they either list or check packages without the ability to undo recent modifications.