Which command can be used to display information about kernel packages, including installed and available kernels?

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 can be used to display information about kernel packages, including installed and available kernels?

Explanation:
This question tests how to obtain kernel package metadata, including what’s installed and what’s available to install. Using the package manager to view details for the kernel package provides a complete picture: it shows the installed kernel version (if any) and the versions that are available in enabled repositories, along with description, repository, and dependencies. This helps you decide if an upgrade is needed and what options exist. The reason this is the best choice is that it yields descriptive information about the kernel package itself, not just a list. The command will show both the currently installed kernel and what versions are in the repos you can install from, which is exactly what’s asked. Other options either report the running kernel only (uname -r) or list installed kernels without offering the full package metadata (rpm -qa kernel). Listing via a simple query can show versions, but it doesn’t provide the detailed package information you’d get with the info subcommand.

This question tests how to obtain kernel package metadata, including what’s installed and what’s available to install. Using the package manager to view details for the kernel package provides a complete picture: it shows the installed kernel version (if any) and the versions that are available in enabled repositories, along with description, repository, and dependencies. This helps you decide if an upgrade is needed and what options exist.

The reason this is the best choice is that it yields descriptive information about the kernel package itself, not just a list. The command will show both the currently installed kernel and what versions are in the repos you can install from, which is exactly what’s asked.

Other options either report the running kernel only (uname -r) or list installed kernels without offering the full package metadata (rpm -qa kernel). Listing via a simple query can show versions, but it doesn’t provide the detailed package information you’d get with the info subcommand.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy