CompTIA Linux+ (XK0-005) — Question 247

A Linux administrator needs to determine if prerequisites are met. One of the application requirements is to install Perl on a system. Which of the following commands would accomplish this task?

Answer options

Correct answer: B

Explanation

The correct command to install a package in Linux is 'rpm -iv perl', which installs the Perl package. Option A is incorrect because '-Uf' is used for upgrading an already installed package, while option C lists installed packages and option D is not a valid command for installing software.