PrepAway - Latest Free Exam Questions & Answers

Which of the following commands will you use to accomplish the task?

You are a newly appointed Red Hat Technician for company Inc. The company has a Linux-based
network. You want to install a package named httpd on your Linux system. Before installing the
package, you want to get the list of those packages that httpd depends on. Which of the following
commands will you use to accomplish the task?

PrepAway - Latest Free Exam Questions & Answers

A.
rpm deplist httpd

B.
yum deplist httpd

C.
yum list httpd

D.
rpm -qR httpd

Explanation:

If the package is not yet installed, the yum deplist httpd command is used to get the list of
packages that httpd depends on.Answer option C is incorrect. The yum list httpd command can be
used to list various information about available packages. For example, it lists all available and
installed packages and all packages with updates available in the yum repositories.
Answer option D is incorrect. If the package is already installed, the rpm -qR httpd command is
used to get the list of packages that this package depends on.
Answer option A is incorrect. This command is incorrect. The deplist option is not used with the
rpm command.

One Comment on “Which of the following commands will you use to accomplish the task?


Leave a Reply