CompTIA Linux+ (XK0-004) — Question 78

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?

Answer options

Correct answer: B

Explanation

The correct answer is A, as 'dnf' is the modern package manager that should be used instead of deprecated ones. Option B is incorrect because it is used to remove a package, not install it. Option C is not applicable since 'dpkg' is used for Debian packages and not RPM packages. Option D is also incorrect since 'apt-get' is not suitable for RPM packages.