ports and /var/db/pkg

Kris Kennaway kris at obsecurity.org
Thu Apr 3 14:30:10 PST 2003


On Thu, Apr 03, 2003 at 02:06:39PM +0300, Danny Braniss wrote:
> 
> > Correct.
> > 
> 
> ok, so i wrote a small script (tcl, since i don't know perl), that
> does some checking, it reports for each package, the number of files
> how many are realy there, and if so, checks the MD5.
> 
> now, if im not to far off, if some/all files are missing, or if the
> md5 does not match, i should be able to remove the package info, ...

Well, that's not what you were asking for originally, and tools
already exist to check that.

e.g. pkg_info -g and the example from the pkg_which(1) manpage that I
mentioned to you in a previous email.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030403/03a077f0/attachment.bin


More information about the freebsd-hackers mailing list