XK0-004 · 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.. The rpm --nodeps flag instructs the package manager to skip dependency resolution checks entirely, allowing installation to proceed without evaluating whether required dependencies are present.
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
(39 responses)- A87% (34)
- B3% (1)
- C8% (3)
- D3% (1)
Why each option
The rpm --nodeps flag instructs the package manager to skip dependency resolution checks entirely, allowing installation to proceed without evaluating whether required dependencies are present.
The --nodeps flag in rpm bypasses the dependency resolution check entirely, meaning the installation will not fail because rpm never evaluates whether required dependencies are present. The package is installed regardless of whether dependencies exist on the system, which is precisely what 'will not fail due to checks for dependencies' describes. Note that the package may still fail at runtime if missing dependencies are required for execution.
This choice implies the package itself satisfies or provides its dependencies rather than accurately describing that rpm's dependency checking mechanism is bypassed - missing dependencies may still be absent, rpm simply does not check for them.
Incorrect because the package WILL be installed with --nodeps; the flag does not prevent installation, it only prevents the dependency resolution step from running.
Incorrect because --nodeps does not prevent installation; it skips the dependency check while still allowing the installation to complete successfully.
Concept tested: rpm --nodeps flag bypassing dependency resolution
Source: https://rpm.org/man/rpm.8.html
Topics
Community Discussion
No community discussion yet for this question.