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.
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)- A86% (25)
- B7% (2)
- C3% (1)
- D3% (1)
Why each option
Executing `rpm -i --nodeps installpackage.rpm` will cause the RPM package installation to proceed, ignoring any dependency checks.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.