XK0-005 · Question #178
XK0-005 Question #178: Real Exam Question with Answer & Explanation
The correct answer is A: # dnf install newprogram.x86_64.rpm. To install an RPM package on a modern RPM-based Linux distribution without using deprecated tools, the administrator should use the DNF package manager.
Question
A Linux administrator attempts to install the package newprogram.x86_64.rpm using a package manager. The administrator receives a warning indicating the command that was run was using a deprecated package manager. Which of the following commands should the administrator use to avoid the warning and install the newprogram.x86_64.rpm program?
Options
- A# dnf install newprogram.x86_64.rpm
- B# rpm -e newprogram.x86_64.rpm
- C# dpkg -i newprogram.x86_64.rpm
- D# apt-get install newprogram.x86_64.rpm
Explanation
To install an RPM package on a modern RPM-based Linux distribution without using deprecated tools, the administrator should use the DNF package manager.
Common mistakes.
- B.
rpm -eis used to erase (uninstall) an RPM package, not install it. - C.
dpkgis the package manager for Debian-based systems and cannot directly install.rpmfiles. - D.
apt-getis also for Debian-based systems and cannot install.rpmfiles.
Concept tested. Linux DNF package manager usage
Topics
Community Discussion
No community discussion yet for this question.