Find candidates whose package name or summary mentions web server.
The package name is not known and this is not a file-provider lookup.
Which command is appropriate?
yum search TERM matches package names and summaries. Once a name is known, yum info can show details.
Detailed explanation
yum info 'web server'Incorrect. info is intended for a known package name.
Incorrect. info is intended for a known package name.
yum provides 'web server'Incorrect. provides searches which package supplies a file or capability.
Incorrect. provides searches which package supplies a file or capability.
yum list 'web server'Incorrect. list filters package names rather than searching summaries.
Incorrect. list filters package names rather than searching summaries.
yum search 'web server'Correct. yum search 'web server' searches package metadata for the phrase.
Correct. yum search 'web server' searches package metadata for the phrase.
Try it yourself
An example you can run in a temporary verification environment.
yum search 'web server'Expected result
検索語に関連するパッケージ名と概要(有効なリポジトリにより異なる)Key points
- search finds candidates
- info inspects a known name
- provides finds file providers
Notes
- Environment: YUM 3.xまたは互換YUM / 読み取り操作
- 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.