CompTIA Linux+ (XK0-005) — Question 117
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?
Answer options
- A. dnf remove packagename
- B. apt-get remove packagename
- C. rpm -i packagename
- D. apt remove packagename
Correct answer: A
Explanation
The command 'dnf remove packagename' is correct because DNF is the package manager used for RPM packages in modern systems. The other options, 'apt-get remove packagename' and 'apt remove packagename', are for Debian-based systems, and 'rpm -i packagename' is used for installing packages rather than removing them.