Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sndiff

sndiff is a small tool that report differences between snapshots in openSUSE Tumbleweed and MicroOS.

By default shows information about packages and files in /etc, that can return diff -u output for changelogs and modified files. See sndiff --help for all the options.

Snapshots are read from the root snapper config. Other configs, for example one tracking /home, can be selected with --config. For those all the files in the subvolume are compared, as packages and /etc only live in the root one.

Examples

sndiff 3: Compare the snapshot 3 with the current active one, showing list of updated, downgraded, added and removed packages, and changed, added and removed files in /etc.

sndiff 3 4: Compare snapshots 3 (old) and 4 (new), showing the same information than before.

sndiff: Compare the previous snapshot (old) with the current active one (new). The previous snapshot selection depends on the kind of distribution (MicroOS or Tumbleweed).

sndiff --short 3 4: Present the information in a compact way.

sndiff --packages 3 4: Only compares packages from snapshots 3 and 4.

sndiff --etc 3 4: Only compares /etc files.

sndiff --diff 3 4: Shows diff -u (10 lines max) of changelog for updated or downgraded packages, and changed files from /etc.

sndiff --diff --json 3 4: Generate JSON output, this time includes the full differences.

sndiff --no-colors 3 4: No colorized output.

sndiff --config home: Compare the two last snapshots of the home snapper config, showing the changed, added and removed files in the subvolume. The config can also be named by its subvolume, like in sndiff --config /home.

sndiff list: Print a table of current snapshots. Mark the snapshot selected as old and new.

sndiff --json list: Shows the same table in JSON format.

About

Basic diff of packages and files for snapshots

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages