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
- A. zypper get '*foo'
- B. zypper update 'foo?'
- C. zypper force 'foo*'
- D. zypper install '*foo'
- E. zypper add '.*foo'
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.