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.
Correct. yum check reports local package database problems.
yum check-updateIncorrect. check-update only queries available updates.
Incorrect. check-update only queries available updates.
yum makecacheIncorrect. makecache builds repository metadata caches.
Incorrect. makecache builds repository metadata caches.
yum clean allIncorrect. clean all removes caches and does not inspect database consistency.
Incorrect. 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 / 読み取り検査
- 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.