exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 36 discussion

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

After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed. Which of the following commands can be used to remove the package?

  • A. dnf remove packagename
  • B. apt-get remove packagename
  • C. rpm -i packagename
  • D. apt remove packagename
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Alizadeh
1 year, 8 months ago
Selected Answer: A
The correct answer is A. dnf remove packagename.
upvoted 1 times
...
linux_admin
2 years, 2 months ago
If you are using a Red Hat-based Linux distribution, such as Fedora or CentOS, the correct command to remove an RPM package that was installed is dnf remove packagename or rpm -e packagename. In this case, the command dnf remove packagename should be used as it is the modern package manager for Fedora and CentOS. The rpm -e packagename command is also correct, but dnf is recommended as it provides improved functionality over rpm. apt-get remove packagename and apt remove packagename are commands used to remove packages on Debian-based distributions such as Ubuntu, and are not relevant for Red Hat-based distributions.
upvoted 4 times
EngAbood
8 months, 3 weeks ago
but the question didn't mention the distributions :)
upvoted 2 times
clair12
6 months, 3 weeks ago
It said RPM packages which are usually used on RHEL based systems. (rpm is redhat package manager)
upvoted 2 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