ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 252 - XK0-005 discussion

Report
Export

An administrator accidentally installed the httpd RPM package along with several dependencies. Which of the following options is the best way for the administrator to revert the package installation?

A.
dnf clean all
Answers
A.
dnf clean all
B.
rpm -e httpd
Answers
B.
rpm -e httpd
C.
apt-get clean
Answers
C.
apt-get clean
D.
yum history undo last
Answers
D.
yum history undo last
Suggested answer: D

Explanation:

The yum history undo last command will undo the last transaction, which in this case is the installation of the httpd RPM package and its dependencies. This will remove the packages that were installed and restore the previous state of the system. SeeHow to undo or redo yum transactionsandyum history. Reference 1: https://www.redhat.com/sysadmin/undo-redo-yum-transactions 2: https://man7.org/linux/man-pages/man8/yum.8.html#HISTORY


asked 02/10/2024
Vivek Nandey
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first