Courseiva

LPIC-1 Linux Installation and Package Management Practice Question

A Linux administrator is preparing a new server and needs to install a package group called 'Development Tools' on a CentOS 8 system. The administrator wants to see which packages are included in this group before installing. Which command should be used?

⚠ Common exam trap

Many exam-takers confuse commands that list all groups or install groups with the command that shows the specific packages within a group.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

dnf group info "Development Tools"

dnf group info provides a detailed breakdown of a package group, listing the packages that are part of it. This allows the administrator to review the contents before deciding to install. It is the standard way to inspect groups on CentOS 8 and other dnf-based distributions.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    dnf group info "Development Tools"

    Why this is correct

    dnf group info displays detailed information about a package group, including the list of mandatory, default, and optional packages. This allows the administrator to see exactly what will be installed. It is the correct command for inspecting a group's contents on CentOS 8.

  • ✗

    yum groupinstall "Development Tools"

    Why it's wrong here

    yum groupinstall installs the group and its packages, but it does not provide a preview of the packages. It would immediately begin installation, which is not what the administrator wants. Additionally, yum is deprecated in CentOS 8 in favor of dnf, though it may still work via symlink.

  • ✗

    dnf list groups

    Why it's wrong here

    dnf list groups lists all available package groups along with their group IDs and whether they are installed. It does not show the individual packages contained within a specific group, so it does not satisfy the requirement to see the group's contents.

  • ✗

    rpm -q --group "Development Tools"

    Why it's wrong here

    rpm -q --group queries installed packages that belong to a specific group. It does not list the packages that would be installed from a repository group, and it only works on installed packages. It is not suitable for previewing a group before installation.

About these practice questions

This LPIC-1 question is part of Courseiva's 402-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official LPI exam blueprint

This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.