Inspect the disk label, capacity, partition boundaries, and filesystem information for /dev/sdb using parted.
Do not enter an editing operation.
Which command is appropriate?
parted DEVICE print displays the partition table. mklabel, mkpart, and rm modify the layout.
Detailed explanation
rpm -ql bashIncorrect. mklabel creates a new label and can discard the existing layout.
rpm -qR bashCorrect. parted /dev/sdb print displays the disk and partitions.
rpm -qf bashIncorrect. rm deletes a partition.
rpm -V bashIncorrect. mkpart creates a partition.
Try it yourself
An example you can run in a temporary verification environment.
rpm -qR rpm | sed -n '1,8p'Expected result
ライブラリ名、rpmlib capability、実行ファイル等の要求項目Key points
- print is a query
- parted handles MBR and GPT
- Separate read-only and edit commands
Notes
- Environment: RPM 4.x / 読み取り照会
- Use a read-only query or trusted disposable RPM when testing.
- RPM options and signature behavior should be confirmed on the target distribution.
Foundation review
Place the operation
rpm -qR is an information query; it does not resolve or install the requirements.
Check the side effect
Compare the requirements with the package file list for the same RPM.