You have used the rpm command with the -q-requires option to determine the components required by the rpm package. One of the required components is /usr/bin/perl. What command would you enter to find out which RPM package provides this component?
  1. rpm -qs --requires /usr/bin/perl
  2. rpm -qi --requires /usr/bin/perl
  3. rpm -q --whatprovides /usr/bin/perl
  4. rpm -q --provides perl
Explanation
Answer - C - You should use the rpm -q --whatprovides /usr/bin/perl to find out which RPM package provides this component.

Key Takeaway: The whatprovides command is used to find out which package provides a specific feature or file. The whatprovides {dependency-1} {dependency-2} command can be used to list packages that satisfy dependencies.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz