exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 85 discussion

Actual exam question from CompTIA's XK0-005
Question #: 85
Topic #: 1
[All XK0-005 Questions]

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?

  • 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
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MaryamNesa
Highly Voted 11 months, 3 weeks ago
D is correct. check the following link: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/managing_software_with_the_dnf_tool/assembly_handling-package-management-history_managing-software-with-the-dnf-tool#:~:text=Reverting%20transactions%201%20To%20revert%20a%20particular%20transaction%2C,last%20transaction%2C%20use%3A%20%23%20dnf%20history%20undo%20last
upvoted 6 times
...
linux_admin
Most Recent 8 months, 3 weeks ago
Selected Answer: D
D. dnf history and dnf history undo last The "dnf history" command displays the history of all transactions performed using the DNF package manager, including package installs, upgrades, and removals. The "dnf history undo last" command undoes the last transaction, effectively removing the package that was installed. By using these two commands, the systems administrator can reveal the system to a compliant state by removing the unapproved packages. Option A "dnf list and dnf remove last" lists the packages installed on the system, but it does not undo the last transaction. The "dnf remove last" command is not a valid command.
upvoted 4 times
...
Ckl22
10 months, 2 weeks ago
Selected Answer: D
Yeah D is the correct answer. If there were multiple unwanted changes, the admin could also run the “rollback” option instead of “last”
upvoted 1 times
...
Veteran903
11 months, 3 weeks ago
D is wrong, the right answer is A
upvoted 1 times
TheRealManish
11 months, 3 weeks ago
I tested it on my VM and D worked for me.. as for a when do - dnf remove last, it says "no mach for argument last"
upvoted 2 times
Veteran903
11 months, 3 weeks ago
you are correct, D is the right answer
upvoted 1 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago