Courseiva
Linux Installation and Package ManagementmediumMultiple SelectObjective-mapped

LPIC-1 Linux Installation and Package Management Practice Question

Which three options are valid ways to install a package 'curl' on a RHEL 8 system? (Choose three.)

⚠ Common exam trap

A common mix-up: candidates think `yum` is obsolete on RHEL 8, but it still works as a compatibility wrapper, while `apt-get` and `zypper` are clearly from different distributions, and `rpm -i` requires a local file, not a package name.

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 install curl`

`dnf` is the default package manager on RHEL 8, replacing `yum` for handling RPM packages with automatic dependency resolution. It directly installs the `curl` package from configured repositories.

Answer analysis

Option-by-option breakdown

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

  • `apt-get install curl`

    Why it's wrong here

    Apt-get is not used on RHEL.

  • `dnf install curl`

    Why this is correct

    Dnf is the default package manager on RHEL 8.

  • `rpm -i curl.rpm`

    Why this is correct

    Valid if the RPM file is obtained.

  • `yum install curl`

    Why this is correct

    Yum is available for compatibility with RHEL 7.

  • `zypper install curl`

    Why it's wrong here

    Zypper is used on SUSE Linux.

About these practice questions

One of 527 original LPIC-1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.