Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2010 08:49:32 -0400
From:      Diane Bruce <db@db.net>
To:        "Aryeh M. Friedman" <aryeh.friedman@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: regenerating /var/db/pkg
Message-ID:  <20100422124932.GA21661@night.db.net>
In-Reply-To: <4BCE5ECC.6070202@gmail.com>
References:  <4BCE5ECC.6070202@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 20, 2010 at 10:11:24PM -0400, Aryeh M. Friedman wrote:
> I acciddentally rm'ed my /var/db/pkg and want to know is it possible to 
> rgenerate it (I have portmaster and portupgrade installed)


You would have to write a script which went through each file in
/usr/local/bin and /usr/local/lib (mostly sufficient) and examined
every single pkg-plist looking for the corresponding file. Then you
know what port the file was generated by. Needless to say, this would
be somewhat horrible. 

- Diane
-- 
- db@FreeBSD.org db@db.net http://www.db.net/~db



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100422124932.GA21661>