Date: Fri, 04 Apr 2003 14:11:58 +0300 From: Danny Braniss <danny@cs.huji.ac.il> To: Kris Kennaway <kris@obsecurity.org> Cc: hackers@freebsd.org Subject: Re: ports and /var/db/pkg Message-ID: <E191P70-000Iw8-00@cs.huji.ac.il> In-Reply-To: Message from Kris Kennaway <kris@obsecurity.org> <20030403223006.GD15705@rot13.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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. OK, let me refrase it PROBLEM: how to update /var/db/pkg, when it knows too much, i.e. /usr/local has less stuff that /var/db/pkg knows about. > > e.g. pkg_info -g and the example from the pkg_which(1) manpage that I > mentioned to you in a previous email. i read most of the pkg*, and though im very impressed, i fail to find a clear/easy way to get a one line output saying: pkg xyz no longer exits, can be removed from database thanks, danny
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E191P70-000Iw8-00>