Check local package data for unresolved dependencies, duplicate packages, or similar consistency issues.
Do not simply list available updates.
Which command is appropriate?
yum check examines the local package database for dependency and duplicate-related problems. rpm -V serves a different file-verification role.
Detailed explanation
yum checkCorrect. yum check reports local package database problems.
yum check-updateIncorrect. check-update only queries available updates.
yum makecacheIncorrect. makecache builds repository metadata caches.
yum clean allIncorrect. clean all removes caches and does not inspect database consistency.
Try it yourself
An example you can run in a temporary verification environment.
yum checkExpected result
問題がなければエラーなし。問題があれば依存・重複等を報告するKey points
- check inspects package DB
- check-update checks updates
- rpm -V verifies files
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
Database consistency and file-attribute verification are separate diagnostics.
Check the side effect
Treat reported conflicts as evidence to investigate before repairing.