220-1102 Question 252
Single answerdnfA Linux technician is supporting a Fedora workstation that fails to launch a graphics application because a required package is missing. The technician knows the package name and wants to install it along with any required dependencies using the system's standard package manager. Which command should the technician use?
- A
dnf install package_name
- B
dnf remove package_name
- C
rpm -e package_name
- D
apt-get install package_name
Show answer and explanation
Correct answer: A
Explanation
The best answer is "dnf install package_name" because Fedora uses DNF as its primary package management tool. In a real support scenario, DNF is preferred for routine software installation because it works with configured repositories and automatically handles dependency resolution. By contrast, rpm is a lower-level package tool and does not provide the same repository-based dependency handling for standard install workflows. Using apt-get would be incorrect because it belongs to Debian-based systems, not Fedora. This aligns with standard Linux administration best practices and Fedora documentation for package management with DNF.
- A. Correct.
Correct. On Fedora, dnf is the standard package manager used to install software packages from configured repositories. The install subcommand resolves and installs required dependencies automatically, which is exactly what the technician needs in this scenario.
- B. Incorrect.
Incorrect. dnf remove uninstalls an installed package rather than installing a missing one. A learner might choose this if they recognize dnf but confuse package installation and removal tasks.
- C. Incorrect.
Incorrect. rpm -e removes an RPM package from the system. Although rpm is related to RPM-based distributions such as Fedora, this command does not install software or resolve dependencies for a missing package.
- D. Incorrect.
Incorrect. apt-get install is used on Debian-based distributions such as Ubuntu, not Fedora. This is a common misconception when switching between Linux distribution families.