nerdexam
CompTIACompTIA

XK0-005 · Question #1294

XK0-005 Question #1294: Real Exam Question with Answer & Explanation

The correct answer is A: rpm -e network-tools. To remove an RPM package from a Linux system, the rpm -e command should be used, specifying the package name.

System Management

Question

A Linux administrator has downloaded the network-tools-12.1-17.i386.rpm package for installation to a local system. The administrator issues the rpm -ivh nerwork-cools-12.1- 17.i386.rpm command to install the package. After attempting to use the newly installed package, the administrator realizes the package for the system's architecture was not installed correctly. Which of the following commands should the administrator use to remove the package from the system?

Options

  • Arpm -e network-tools
  • Brpm -U network-tools-12.1-17.i386.rpm
  • Crpm -ivh network-tools-12.1-17.i686.rpm
  • Drpm -r network-tools

Explanation

To remove an RPM package from a Linux system, the rpm -e command should be used, specifying the package name.

Common mistakes.

  • B. rpm -U (or --upgrade) is used to upgrade or install a package if it is not already present, not to remove it.
  • C. rpm -ivh is used to install a package, and specifying a different architecture (i686) would be an attempt to install a new package, not remove the incorrectly installed one.
  • D. rpm -r is not a standard or correct rpm command option for package removal; -e is the correct option.

Concept tested. rpm package removal

Reference. https://man7.org/linux/man-pages/man8/rpm.8.html

Topics

#Linux package management#RPM#Package removal#rpm command

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions