hjuvi's free/libre and minimalist software

Unaltered

Unaltered is a command-line tool to maintain checksum files in directories.

It is written in Rust and released under the GPL-3.0-or-later license.

Screenshot

~/doc $ tree
.
└── gnu
    ├── gcc-14.2.0.pdf
    ├── make-4.4.1.pdf
    └── screen-5.0.0.pdf

1 directory, 3 files
~/doc $ unaltered update
Directory .
Directory ./gnu
Create the checksum file
+ 13f9f543d59e9cb3e4c6aa2c02fd4b683c6b9ef6d27918edad46d13bd99dba47  gcc-14.2.0.pdf
+ a4bc06026984382815e392159e60a4bc356cac6c5b81e5ae84fa4f58f621f4d3  make-4.4.1.pdf
+ 88ded5c91463cd07579fe436bb6dd0680cce97ee894832dad071d6b671f518c8  screen-5.0.0.pdf
~/doc $ rm -f gnu/screen-5.0.0.pdf
~/doc $ cp ~/download/gdb-15.1.pdf gnu/
~/doc $ unaltered list
Directory .
Directory ./gnu
screen-5.0.0.pdf is not present anymore
gdb-15.1.pdf is missing in the checksum file
~/doc $ unaltered update
Directory .
Directory ./gnu
- 88ded5c91463cd07579fe436bb6dd0680cce97ee894832dad071d6b671f518c8  screen-5.0.0.pdf
+ 4775f6d3177a14a5518b841197cf5a401014ff4cf4e7981ebb047f21a0f38837  gdb-15.1.pdf
~/doc $ unaltered check
Directory .
Directory ./gnu
~/doc $ tree
.
└── gnu
    ├── checksums.sha256
    ├── gcc-14.2.0.pdf
    ├── gdb-15.1.pdf
    └── make-4.4.1.pdf

1 directory, 4 files
~/doc $ cat gnu/checksums.sha256
13f9f543d59e9cb3e4c6aa2c02fd4b683c6b9ef6d27918edad46d13bd99dba47  gcc-14.2.0.pdf
4775f6d3177a14a5518b841197cf5a401014ff4cf4e7981ebb047f21a0f38837  gdb-15.1.pdf
a4bc06026984382815e392159e60a4bc356cac6c5b81e5ae84fa4f58f621f4d3  make-4.4.1.pdf

Creating, updating and verifying checksums with Unaltered

Source code and instructions

The source code is hosted by TeDomum's GitLab.

You can download the latest version from the Tags page.
The README file provides detailed information about installation, usage, and support.

About this page

This page is published under the CC0-1.0 license.

The terminal capture (screenshot) was taken with aha (ANSI HTML Adapter) (and slightly reworked manually).