Install nginx from an enabled openSUSE repository.
Resolve dependencies and install it.
Which command is appropriate?
zypper install selects a package from enabled repositories, resolves dependencies, and installs it. The short form is in.
Detailed explanation
zypper search nginxIncorrect. search only finds matching packages.
Incorrect. search only finds matching packages.
zypper info nginxIncorrect. info displays package metadata.
Incorrect. info displays package metadata.
zypper install nginxCorrect. zypper install nginx installs nginx and its dependencies.
Correct. zypper install nginx installs nginx and its dependencies.
zypper remove nginxIncorrect. remove uninstalls a package.
Incorrect. remove uninstalls a package.
Try it yourself
An example you can run in a temporary verification environment.
zypper help installExpected result
installサブコマンドの使用法。実際の導入は行わないKey points
- install adds a package
- Dependencies are resolved
- The short form is in
Notes
- Environment: openSUSE/Zypper公式仕様
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.