DragonFly On-Line Manual Pages

Search: Section:  


PKG_VALIDATE(1)        DragonFly General Commands Manual       PKG_VALIDATE(1)

NAME

pkg_validate - count checksum mismatches and missing files of packages

SYNOPSIS

pkg_validate [-aGxXrdh] [packages]

DESCRIPTION

The pkg_validate script uses pkg_info(1) to check for ports with checksum mismatches or missing files. Only invalid packages are printed out in columns showing the checksum mismatch (csum), missing files (miss), package name (package) and package origin (origin). Unless -r is defined, the last line is a summary.

OPTIONS

The following options are available: -a --all Scan all packages. This is the default action in case no packages have been specified. -c --clean Do not print status messages. -G --no-glob-pattern Do not expend shell glob patterns for package names. -x --regex Treat package names as regular expressions. -X --extended-regex Treat package names as extended regular expressions. -r --raw-print Prints only the raw results, seperated by the delimiter. That means no summary, table header and table formatting. -dC --delimiterC Define the delimiter character. This is not limited to, but especially useful for raw printing. Note that only the first byte of C is used unless -r is also given. -h --help Displays the available options. Packages are package names or patterns matching these. The allowed parameters have the same effects on package matching as with pkg_info(1).

EXAMPLES

To check all your packages run: pkg_validate To check all sql related packages with | as delimiter in raw format run: pkg_validate -rd\| \*sql\*

SOLVING PROBLEMS

There is no general rule on how to act about damaged packages, a good way to start is to closer inspect the package using the command: pkg_info -g <package> Many files are expected to change and have a checksum mismatch (e.g. files that contain cached data). Often missing files are just errors in the plist and do not affect the port. Only a manual inspection can bring clarity.

COMPATIBILITY

The script has been tested on FreeBSD 7.2-PRERELEASE

SEE ALSO

bsdadminscripts(1), pkg_info(1)

HISTORY

The pkg_validate script first appeared in the bsdadminscripts-3.0 collection.

AUTHOR

Dominic Fandrey <kamikaze@bsdforen.de> DragonFly 6.5-DEVELOPMENT April 23, 2009 DragonFly 6.5-DEVELOPMENT

Search: Section: