正解:D
Explanation
The command that installs all packages with a name ending with the string foo is zypper install "*foo". The zypper command is the command line interface of the ZYpp package manager for SUSE Linux. The install (in) subcommand is used to install packages with specified capabilities or RPM files with specified location.
The argument "*foo" is a glob pattern that matches any package name that ends with foo. For example, zypper install "foo" will install packages like barfoo, bazfoo, and foo itself. The other commands are either invalid or do not perform the desired task. The zypper get, zypper update, zypper force, and zypper add subcommands do not exist. The "foo?" and "foo" arguments are also invalid glob patterns, as they do not match the end of the package name. The ".*foo" argument is a valid glob pattern, but it matches any package name that contains foo, not just the ones that end with foo. References:
* Zypper package manager - SUSE Documentation1
* zypper(8) [suse man page] - The UNIX and Linux Forums2
* 45 Zypper Commands to Manage 'Suse' Linux Package Management - Tecmint