checksumgen(1)

CHECKSUMGEN(1) Checksum and verification utils CHECKSUMGEN(1)

NAME

checksumgen - checksum file generator for RPM packages

SYNOPSIS

checksumgen [ options ] REPODIR ARCH
checksumgen [ options ] -l RPMLIST | --rpms=RPMLIST

DESCRIPTION

checksumgen is a tool to generate *.chksum files for selected files in RPM packages. By default all executable ELF files, Linux kernel image, modules, and the firmware are included in the generated checksum files.

The default invocation mode expects a path to an RPM repository (REPODIR) and an architecture name (ARCH). The alternative mode can be used to calculate checksums of the given RPM files (RPMLIST mode).

OPTIONS

-b BASELIST, --baselist=BASELIST
Calculate checksums only for packages with names listed in BASELIST file.
-f VLIST, --pkglist=VLIST
Calculate checksums only for packages for which name-version is found in VLIST (for instance, in a list-rpms.txt file of mkimage-profiles).
-l RPMLIST, --rpms=RPMLIST
Calculate checksums for RPM files by reading their paths from RPMLIST file (incompatible with REPODIR and ARCH params).
-p PSUMS, --prev=PSUMS
Calculate checksums for new RPMs only with relation to previous checksum file PSUMS.
-d DELSED, --delsed=DELSED
Output a sed script to delete the checksums of removed and replaced RPMs to DELSED file.
-u, --update
Delete outdated checksums on the fly and output a complete checksum file (requires PSUMS).
-c, --concat
Append new packages and versions to the given PSUMS file and output a complete checksum file.
-o SUMS, --out=SUMS
Write output to SUMS.
-a, --append
Append the output to SUMS.
-m MISSINGS, --missings=MISSINGS
Write filenames of RPM files not found under REPODIR to the MISSINGS file (the default is ./missings).
--list-keys
List public key fingerprints for selected packages (i. e.: BASELIST and/or including PSUMS) and exit.
-j NPROC, --nproc=NPROC
Use up to NPROC parallel threads (the default is nproc(1) output).
-I PATTTERN, --include=PATTERN
Include files with path matching the given PATTERN (this option may be specified multiple times). The PATTERN syntax is mostly like a shell glob pattern syntax with additional support for double-asterisk ** pattern that matches any substring including slash /. Moreover, the special /**/ pattern matches zero (!) or more subtree items making /usr/lib/python3/site-packages/**/*.py match /usr/lib/python3/site-packages/hyperlink/test/common.py and also /usr/lib/python3/site-packages/six.py whereas /usr/lib/python3/site-packages/*/**/*.py does not.
--no-default
Do not use the default include patterns. By default, the following include patterns are used:
./lib/modules/*/**/*.ko,
./lib/modules/*/**/*.ko.*,
./lib/firmware/**/*.
Additionally, files of the following types are also included by default regardless of their path:
ELF files,
Linux kernel image files,
boot executable image files.
The option disables this behaviour.
-n, --no-fakeroot
Do not use fakeroot.
-v, --verbose
Be verbose.
-V, --version
Print program version and exit.
-h, --help
Show help text and exit.

EXAMPLES

See usage examples in the packaged README file.

BUGS

Report bugs to https://bugzilla.altlinux.org/.

COPYRIGHT

Copyright © BaseALT, Ltd. License GPLv2+: GNU GPL version 2 or later See <http://gnu.org/licenses/gpl.html> for more information.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

checksumdiff(1), checksummerge(1), checksumbot(1).

2026 checksumgen 0.4.7