Windows sfc /scannow equivalent in Linux
Checks installed package files against package metadata.
sfc /scannow
sudo apt install debsums && sudo debsums -s
sudo rpm -Va
sudo pacman -Qkk
Overview
What this command does
On Windows, "sfc /scannow" is used to verify system package files. On Linux, the closest practical mapping shown here is "debsums -s". Checks installed package files against package metadata. This reference is grouped under System & Storage → Repair/Integrity.
Windows → Linux context
What changes when you use this on Linux?
Equivalent task, different tool
Windows sfc /scannow maps to debsums for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.
Distribution details matter
The Debian/Ubuntu, Fedora and Arch rows are not identical. Use the row for your distribution instead of changing only the package-manager name in an example.
Elevated privilege appears in this workflow
At least one example uses sudo. Confirm the target path, device, service or package before running the elevated form; do not add sudo simply to bypass an unexplained permission error.
For the broader concept behind this mapping, read Linux disks, storage and mounts.
Practical tasks
Common use cases
Verify system package files
Checks installed package files against package metadata.
debsums -s
Verify system package files
debsums --help
Show command help when supported
man debsums
Open the manual page when installed
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
debsums -s
Walkthrough
Examples with explanations
# Windows equivalent: sfc /scannow
debsums -s
Reference
Common options and variations
| Command or option | Use |
|---|---|
debsums -s | Verify system package files |
debsums --help | Show command help when supported |
man debsums | Open the manual page when installed |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
The equivalent is distribution-specific for this task: Debian/Ubuntu uses "sudo apt install debsums && sudo debsums -s"; Fedora uses "sudo rpm -Va"; Arch uses "sudo pacman -Qkk".
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | apt package: debsums | sudo apt install debsums && sudo debsums -s |
Equivalent workflow for this distribution. |
| Fedora | rpm database | sudo rpm -Va |
Equivalent workflow for this distribution. |
| Arch | pacman database | sudo pacman -Qkk |
Equivalent workflow for this distribution. |
Keep learning