nerdexam
CompTIACompTIA

XK0-005 · Question #522

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

The correct answer is A: dnf remove packagename. The command that can be used to remove an RPM package that was installed by mistake is dnf remove packagename. This command will use the DNF package manager to uninstall an RPM package and its dependencies from a Linux system that uses RPM-based distributions, such as Red Hat Ent

System Management

Question

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?

Options

  • Adnf remove packagename
  • Bapt-get remove packagename
  • Crpm -i packagename
  • Dapt remove packagename

Explanation

The command that can be used to remove an RPM package that was installed by mistake is dnf remove packagename. This command will use the DNF package manager to uninstall an RPM package and its dependencies from a Linux system that uses RPM-based distributions, such as Red Hat Enterprise Linux or CentOS. The DNF package manager handles dependency resolution and metadata searching for RPM packages.

Topics

#Package Management#DNF#RPM#Linux Commands

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions