sosdiff
Compare two sosreport by parsing sos_reports/sos.json to show the collected files differences and optionally the diff for those files.
- The configuration file is
~/.sosdiff/configuration.ini. - Alternative configuration can be used. E.g:
sosdiff -c ~/.sosdiff/troubleshoot_netwoking.ini. - Some paths are exluded to avoid "Too many levels of symbolic links" errors.
[r'^/sys/class/.*$', r'^/sys/devices/.*$',]- Refer to excluded_href
Output
| Output | Description |
|---|---|
| [- ] | Plugin is missing on sosreport2. |
| [-- ] | Entity is missing on sosreport2. |
| [---] | File is missing on sosreport2. |
| [/ ] | File content is different. Optionally show diff command output. |
| [+ ] | Plugin is present on sosreport2 and missing on sosreport1. |
| [++ ] | Entity is present on sosreport2 and missing on sosreport1. |
| [+++] | File is present on sosreport2 and missing on sosreport1. |
Installation
- Install using
pipor the package at Latest Releasepip install sosdiff
Usage
usage: sosdiff [-h] [-c <config_file>] [-d] [-f] [-e EXCLUDE_FILES] [-i INCLUDE_FILES] [-n SKIP_PLUGINS] [-o ONLY_PLUGINS] [-s] [-t]
sospath1 sospath2
Compare two sosreport by parsing `sos_reports/sos.json` and show the collected files differences.
positional arguments:
sospath1 Path to first sosreport folder.
sospath2 Path to second sosreport folder.
options:
-h, --help show this help message and exit
-c <config_file>, --configuration <config_file>
Configuration file. Defaults to `~/.sosdiff/configuration.ini`
-d, --diff Show `diff` when files content doesn't match.
-f, --no-diff Hide `diff` when files content doesn't match.
-e EXCLUDE_FILES, --exclude-files EXCLUDE_FILES
Exclude files matching this regexp. Can be used multiple times.
-i INCLUDE_FILES, --include-files INCLUDE_FILES
Include files matching this regexp. Can be used multiple times.
-n SKIP_PLUGINS, --skip-plugins SKIP_PLUGINS
Disable these plugins. Can be used multiple times.
-o ONLY_PLUGINS, --only-plugins ONLY_PLUGINS
Enable these plugins only. Can be used multiple times.
-s, --no-text Show colors in the output.
-t, --text Hide colors in the outuput.
Metadata
Release files for sosdiff 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sosdiff-0.5.1.tar.gz | 20.0 kB | With provenance | Details for sosdiff-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sosdiff-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for sosdiff-0.5.1-py3-none-any.whl |
Total release size: 40.9 kB
Release files / sosdiff-0.5.1.tar.gz
| Download URL | sosdiff-0.5.1.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0295b9ed0aacc2b1101381b353a17891caf2dd59cad345640fd3d812e1c0552c
|
|
BLAKE2b-256 checksum How to use checksums |
ded62e2ce3006e347ab4eac5e4b9e18f981fbc37ed926e128f8e4db5bb39943b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.
Transparency logRelease files / sosdiff-0.5.1-py3-none-any.whl
| Download URL | sosdiff-0.5.1-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57438bcd5ee728b3d2940d0859cb25be840122a1a9bae2a0838ccc4094440818
|
|
BLAKE2b-256 checksum How to use checksums |
92adb759d01f871a5b1f48c095fe124b034da66b47f83f27674a00b1b72505d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.
Transparency logSecurity for sosdiff 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sosdiff-0.5.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.