nerdexam
CompTIA

XK0-005 · Question #367

A Linux administrator issues the following command with root or sudo privileges: Rmp -1 installpackage.rpm -nodeps Which of the following should the administrator expect to see in the output?

The correct answer is A. The installpackage.rmp package will not fail due to checks for dependencies. Executing rpm -i --nodeps installpackage.rpm will cause the RPM package installation to proceed, ignoring any dependency checks.

System Management

Question

A Linux administrator issues the following command with root or sudo privileges:

Rmp -1 installpackage.rpm -nodeps Which of the following should the administrator expect to see in the output?

Options

  • AThe installpackage.rmp package will not fail due to checks for dependencies.
  • BThe installpackage.rmp package will not fail due to missing dependencies
  • CThe installpackage.rmp package will not be installed, and there will be dependencies
  • DThe installpackage.rmp package will not be installed, and there not be check for

How the community answered

(29 responses)
  • A
    86% (25)
  • B
    7% (2)
  • C
    3% (1)
  • D
    3% (1)

Why each option

Executing `rpm -i --nodeps installpackage.rpm` will cause the RPM package installation to proceed, ignoring any dependency checks.

AThe installpackage.rmp package will not fail due to checks for dependencies.Correct

The `rpm -i` command installs an RPM package, and the `--nodeps` option (or `-nodeps` as presented) specifically instructs the RPM package manager to bypass all dependency checks during installation. This means that the installation will attempt to complete without failing due to missing dependencies, although the package might still encounter runtime issues if critical dependencies are truly absent.

BThe installpackage.rmp package will not fail due to missing dependencies

While the package will not fail due to missing dependencies during installation, the `--nodeps` option explicitly bypasses the *checks* for dependencies, making statement A more precise about the command's direct effect.

CThe installpackage.rmp package will not be installed, and there will be dependencies

The `rpm -i` command is used for *installation*, so the package *will* be installed or at least an attempt will be made, contradicting the statement that it will not be installed.

DThe installpackage.rmp package will not be installed, and there not be check for

This choice incorrectly states that the package will not be installed, although it correctly implies that dependency checks will be skipped.

Concept tested: RPM package management; --nodeps option

Source: https://linux.die.net/man/8/rpm

Topics

#RPM#Package Management#Linux Commands#Dependency Management

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice