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.
yum provides 'web server'Incorrect. provides searches which package supplies a file or capability.
yum list 'web server'Incorrect. list filters package names rather than searching summaries.
yum search 'web server'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 / 読み取り操作
- Use a disposable system or transaction preview before package changes.
- YUM compatibility layers can expose different subcommands across distributions.
Foundation review
Place the operation
Capability discovery and file-provider lookup are related but distinct metadata searches.
Check the side effect
Inspect a candidate with yum info before installing it.