nerdexam
CompTIA

LX0-103 · Question #5

Which of the following commands can be used to download the RPM package kernel without installing it?

The correct answer is B. yumdownloader kernel. The yumdownloader utility downloads RPM packages to disk without installing them, and is the standard tool for this purpose on RPM-based systems.

Linux Installation and Package Management

Question

Which of the following commands can be used to download the RPM package kernel without installing it?

Options

  • Ayum download --no-install kernel
  • Byumdownloader kernel
  • Crpm --download --package kernel
  • Drpmdownload kernel

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    89% (31)
  • C
    3% (1)
  • D
    6% (2)

Why each option

The yumdownloader utility downloads RPM packages to disk without installing them, and is the standard tool for this purpose on RPM-based systems.

Ayum download --no-install kernel

'yum download --no-install' is not valid yum syntax; the '--no-install' flag does not exist for the yum command.

Byumdownloader kernelCorrect

yumdownloader is a dedicated utility included in the yum-utils package designed specifically to download RPM packages without installing them. Running 'yumdownloader kernel' fetches the RPM file to the current directory, resolving the package name against configured repositories just as yum install would, but stopping short of installation.

Crpm --download --package kernel

The rpm command does not have a '--download' flag; rpm operates on local package files and does not fetch packages from repositories.

Drpmdownload kernel

'rpmdownload' is not a real command and does not exist on any standard Linux distribution.

Concept tested: Downloading RPM packages without installing using yumdownloader

Source: https://linux.die.net/man/1/yumdownloader

Topics

#yumdownloader#yum#RPM download#package management

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice