NetBSD/usr.sbin/pkg_install/admin/pkg_admin.1

109 lines
3.7 KiB
Groff
Raw Normal View History

1999-04-10 17:05:18 +04:00
.\" $NetBSD: pkg_admin.1,v 1.6 1999/04/10 13:05:18 simonb Exp $
1999-01-19 20:01:56 +03:00
.\"
.\" Copyright (c) 1999 Hubert Feyrer. All rights reserved.
.\"
.\" 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.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by Hubert Feyrer.
.\" 4. The name of the author may not be used to endorse or promote products
.\" derived from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 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 16th, 1999
.Dt pkg_admin 1
.Os
1999-01-19 20:01:56 +03:00
.Sh NAME
.Nm pkg_admin
.Nd perform various administrative tasks to the pkg system.
.Sh SYNOPSIS
1999-03-07 14:58:22 +03:00
.Nm ""
1999-01-19 20:01:56 +03:00
.Ar command args ...
.Sh DESCRIPTION
This command performs various administrative tasks around the NetBSD
Packages System. Available commands are:
.Pp
.Bl -tag -width check [pkg]
.It Cm rebuild
Rebuild the package database mapping from scratch, scanning
subdirectories in
.Pa /var/db/pkg
for
.Pa +CONTENTS
files, parsing them and writing the resulting absolute pathnames
together with the package they belong to into the package database.
.Pp
This option is intended to be used for upgrading from non-pkgdb-pkg_*
tools to pkgdb-pkg_* tools, further manipulation of the pkgdb will be
done by
.Xr pkg_add 1 ,
.Xr pkg_delete 1
and
.Xr pkg_create 1 .
.Pp
Needs to be run as root.
.Pp
.It Cm check Ar [pkg ...]
Use this command to check the files belonging to some or all of the
packages installed on the local machine against their MD5 checksum
noted in their +CONTENTS files. If no additional argument is given,
the files of all installed packages are installed, else only the named
packages will be ckecked (wildcards can be used here, see
.Xr pkg_info 1
).
1999-01-19 20:01:56 +03:00
.Pp
The packages' +CONTENTS files will be parsed and the MD5
1999-01-19 20:01:56 +03:00
checksum will be checked for every file found. A warning message is
printed if the expected checksum differs from the checksum of the file
on disk.
.Pp
.It Cm dump
Dump the contents of the package database, similar to
.Cm pkg_info -F .
1999-04-10 17:05:18 +04:00
Columns are printed for the keyfield used in the pkgdb - the filename -,
1999-01-19 20:01:56 +03:00
and the data field - the package the file belongs to.
1999-03-10 11:17:35 +03:00
.El
1999-01-19 20:01:56 +03:00
.Pp
.Sh ENVIRONMENT
.Ss PKG_DBDIR
Where to register packages instead of
.Pa /var/db/pkg .
.Sh FILES
.Bl -tag -width /var/db/pkg/pkgdb.byfile.db -compact
.It Pa /var/db/pkg/pkgdb.byfile.db
.It Pa /var/db/pkg/<pkg>/+CONTENTS
.El
.Sh SEE ALSO
.Xr pkg_add 1 ,
.Xr pkg_delete 1 ,
.Xr pkg_info 1 ,
.Xr pkg_create 1 .
.Sh AUTHOR
The
.Nm
command was written by Hubert Feyrer.
.Sh HISTORY
The
.Nm
command first appeared in
.Nx
1.4.