Which DNF command removes packages that are no longer required by any installed package?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which DNF command removes packages that are no longer required by any installed package?

Explanation:
Managing orphaned dependencies is what this question tests. When you install packages, DNF pulls in dependencies. If those dependencies end up no longer needed by any installed package, they’re candidates for removal to free space and keep the system lean. The autoremove command specifically scans for packages that were installed as dependencies and are no longer required, and then removes them. It protects your explicitly installed packages, so you don’t remove something you chose to install yourself. The other options don’t perform this cleanup: cleaning the cache doesn’t affect installed packages, updating brings in newer versions, and removing a specific group named unneeded targets something different rather than pruning orphaned dependencies.

Managing orphaned dependencies is what this question tests. When you install packages, DNF pulls in dependencies. If those dependencies end up no longer needed by any installed package, they’re candidates for removal to free space and keep the system lean. The autoremove command specifically scans for packages that were installed as dependencies and are no longer required, and then removes them. It protects your explicitly installed packages, so you don’t remove something you chose to install yourself. The other options don’t perform this cleanup: cleaning the cache doesn’t affect installed packages, updating brings in newer versions, and removing a specific group named unneeded targets something different rather than pruning orphaned dependencies.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy