ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 85 - XK0-005 discussion

Report
Export

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
Answers
A.
dnf list and dnf remove last
B.
dnf remove and dnf check
Answers
B.
dnf remove and dnf check
C.
dnf info and dnf upgrade
Answers
C.
dnf info and dnf upgrade
D.
dnf history and dnf history undo last
Answers
D.
dnf history and dnf history undo last
Suggested answer: D

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.

The other options are not correct commands for listing and removing corresponding packages. The dnf list command will display a list of available packages in enabled repositories, but not the packages installed by dnf transactions. The dnf remove command will remove specified packages from the system, but not all packages from a specific transaction. The dnf info command will display detailed information about specified packages, but not about dnf transactions. The dnf upgrade command will upgrade all installed packages to their latest versions, but not undo any package changes. Reference: Handling package management history; dnf(8) - Linux manual page

asked 02/10/2024
Sivakumar Balasundram
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first