Which command lists all yum repositories, including both enabled and disabled?

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 command lists all yum repositories, including both enabled and disabled?

Explanation:
This tests how to view every yum repository defined on the system, including those that aren’t currently enabled. The command that does this is yum repolist all, which lists every repository found in the yum configuration and marks which ones are enabled and which are disabled. If you instead use yum repolist enabled, you’ll only see the repositories that are active right now, not the disabled ones. Other commands like yum repos or yum list repos aren’t valid for listing repositories and won’t provide the full set.

This tests how to view every yum repository defined on the system, including those that aren’t currently enabled. The command that does this is yum repolist all, which lists every repository found in the yum configuration and marks which ones are enabled and which are disabled. If you instead use yum repolist enabled, you’ll only see the repositories that are active right now, not the disabled ones. Other commands like yum repos or yum list repos aren’t valid for listing repositories and won’t provide the full set.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy