LPIC-1 Exam 101 v5 (Linux Administrator) — Question 118

Which of the following commands installs all packages with a name ending with the string foo?

Answer options

Correct answer: D

Explanation

The correct command is D, 'zypper install '*foo'', which accurately targets all packages that end with 'foo'. Options A and C are incorrect as they do not utilize the correct command for installation. Option B is also incorrect because it attempts to update instead of install, and option E is not valid for installing packages.