12.2. Checking a package with ``pkglint''

The NetBSD package system comes with a tool called "pkglint" (located in the directory pkgsrc/pkgtools/pkglint) which helps to check the contents of these files. After installation it is quite easy to use, just change to the directory of the package you which to examine and execute ``pkglint'':

	tron@lyssa:/usr/pkgsrc/devel/bison> pkglint
	OK: checking pkg/COMMENT.
	OK: checking pkg/DESCR.
	OK: checking Makefile.
	OK: checking files/md5.
	OK: checking patches/patch-aa.
	looks fine.
  

Depending on the supplied command line arguments (see ``man pkglint'') more intensive checks will be performed. Use e.g. ``pkglint -a -v'' for a very detailed and verbose check.