What command would you use to verify the integrity of installed packages in a Debian-based system?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

To verify the integrity of installed packages in a Debian-based system, using the command "debsums" is effective because it specifically checks the MD5 checksums of installed files against the checksums stored in the package database. This utility is especially useful for ensuring that files remain unchanged since installation, which can help identify any corruption or inadvertent modifications.

When you run "debsums," it compares the current state of files with the expected state defined in their respective packages, giving you an accurate assessment of file integrity. The results can inform you if any modifications or corruptions have occurred, allowing for corrective action if necessary.

Other commands, while useful for different purposes, do not focus specifically on verifying file integrity. For example, "dpkg --verify" checks the integrity of package installs but is less user-friendly than "debsums" for checking all files at once. Meanwhile, "apt-get check" verifies the package manager's database for consistency but does not assess file integrity. The option "--check-package" is not a valid command and would not achieve the intended effect.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy