summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ckdist/ckdist.1
blob: 5dc37b024a092fdfe39eb736ce9b4de6fd3692b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.\" Copyright (c) 1997 Robert Nordier
.\" All rights reserved.
.\"
.\" $FreeBSD$
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd January 20, 1997
.Dt CKDIST 1
.Os
.Sh NAME
.Nm ckdist
.Nd check software distributions
.Sh SYNOPSIS
.Nm
.Bq Fl airsx
.Bq Fl d Ar dir
.Bq Fl n Ar name
.Bq Fl t Ar type
.Ar
.Sh DESCRIPTION
The
.Nm
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.
.Pp
The
.Ar 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
appropriately-named files only.
.Pp
Options are as follows:
.Bl -tag -width 8n -offset indent
.It Fl a
Report on all distribution components, not just those in respect of
which errors are detected.
.It Fl i
Ignore missing distribution components.
.It Fl r
Search specified directories recursively.
.It Fl s
Suppress complaints about inaccessible checksum files and directories.
.It Fl 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.
.It Fl d Ar dir
Look for distribution components in the directory
.Ar dir .
.It Fl n Ar name
Access distribution components using the filename
.Ar name .
When accessing .inf file components, append the appropriate
extension to the filename.
.It Fl t Ar type
Assume that all specified checksum files are of the format
.Ar type ,
and search directories only for files in this format (where
.Ar type
is either "md5" or "inf").
.El
.Sh SEE ALSO
.Xr cksum 1 ,
.Xr md5 1
.Sh DIAGNOSTICS
Exit status is 0 if no errors were detected, 1 if errors were found in
a distribution, and 2 if usage errors, inaccessible input files, or
other system errors were encountered.
.Sh NOTES
Both
.Bx
and
.Tn DOS
versions of
.Nm
are available.
OpenPOWER on IntegriCloud