Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ckdist(1) [freebsd man page]

CKDIST(1)						    BSD General Commands Manual 						 CKDIST(1)

NAME
ckdist -- check software distributions SYNOPSIS
ckdist [-airsx] [-d dir] [-n name] [-t type] file ... DESCRIPTION
The ckdist utility reads ``checksum'' files (which are assumed to specify components of a software distribution) and verifies the integrity of the distribution by validating the checksum of each component file. Both MD5 (128-bit ``message digest'') and .inf (32-bit CRC) checksum formats are supported. The file operands may refer to regular files or to directories. Regular files named md5, or which have an .md5 or an .inf extension, are assumed to be of the implied type, otherwise format is determined from content. If a directory is specified, it is searched for appropri- ately-named files only. The options are as follows: -a Report on all distribution components, not just those in respect of which errors are detected. -i Ignore missing distribution components. -r Search specified directories recursively. -s Suppress complaints about inaccessible checksum files and directories. -x Verify the existence of distribution components (and also check sizes, in the case of .inf files), but omit the more time- consuming step of actually computing and comparing checksums. -d dir Look for distribution components in the directory dir. -n name Access distribution components using the filename name. When accessing .inf file components, append the appropriate exten- sion to the filename. -t type Assume that all specified checksum files are of the format type, and search directories only for files in this format (where type is either md5 or inf). EXIT STATUS
The ckdist utility exits with one of the following values: 0 No errors were detected. 1 Errors were found in a distribution. 2 Usage errors, inaccessible input files, or other system errors were encountered. SEE ALSO
cksum(1), md5(1) NOTES
Both BSD and DOS versions of ckdist are available. BSD
January 20, 1997 BSD

Check Out this Related Man Page

CKSFV(1)						      General Commands Manual							  CKSFV(1)

NAME
cksfv - tests and creates simple file verification (SFV) listings SYNOPSIS
cksfv [-bciqrL] [-C dir] [-f file] [-g path] [file ...] DESCRIPTION
cksfv is a tool for verifying CRC32 checksums of files. CRC32 checksums are used to verify that files are not corrupted. The algorithm is cryptographically crippled so it can not be used for security purposes. md5sum (1) or sha1sum (1) are much better tools for checksuming files. cksfv should only be used for compatibility with other systems. cksfv has two operation modes: checksum creation and checksum verification In checksum creation mode cksfv outputs CRC32 checksums of files to to stdout, normally redirected to an .sfv file. In checksum verification mode cksfv reads filenames from an sfv file, and compares the recorded checksum values against recomputed check- sums of files. OPTIONS
These options are available -b Strip dirnames from filenames that are checksumed. loads the files from original positions, but prints only basenames to catalogue in sfv file. -c Use stdout for printing progress and final resolution (files OK or some errors detected). This is useful for external programs analysing output of cksfv. This also forces fflushes on the output when needed. -C dir Change current directory before proceeding with a verification operation. This option is mostly obsoleted with -g option. Earlier this was used to verify checksums in a different directory: cksfv -C foo -f foo/bar.sfv -f file Verify checksums in the sfv file -g file Change current directory to the path name of the file and verify checksums in the sfv. -i Ignore case in filenames. This is used in the checksum verification mode. -L Follow symlinks when recursing subdirectories. This option is used with the -r option. -q Enable QUIET mode (instead of verbose mode), only error messages are printed -v Enable VERBOSE mode, this is the default mode -r recurse directories and check the .sfv files in each. Symlinks are not followed by default. This option cannot be used with -f and -g options. EXAMPLES
Verify checksums of files listed in 'foo/files.sfv': cksfv -g foo/files.sfv Create checksums for a set of files: cksfv *.gz > files.sfv Verify checksums of case-insensitive filenames listed in 'files.sfv'. This is sometimes useful with files created by operating systems that have case-insensitive filesystem names. cksfv -i -g files.sfv Check checksums of files 'foo' and 'bar' listed in 'files.sfv': cksfv -g files.sfv foo bar Create checksums of files matching /foo/bar/* and strip dirnames away: cksfv -b /foo/bar/* > files.sfv Recursively scan /foo/bar and verify each .sfv file: cksfv -C /foo/bar -r Same as previous, but starting from the current working directory and also following symlinks during recursion: cksfv -r -L SEE ALSO
basename(1) dirname(1) md5sum(1) sha1sum(1) AUTHOR
This manual page was originally written by Stefan Alfredsson <stefan@alfredsson.org>. It was later modified by Heikki Orsila <heikki.orsila@iki.fi> and Durk van Veen <durk.van.veen@gmail.com>. CKSFV(1)
Man Page