Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2010 19:15:53 +0700
From:      =?utf-8?b?4LmE4Lie4Lij4Lix4LiKIA==?= =?utf-8?b?4Lio4Lij4Li14LmC4Lii4LiY4Liy?= <pirat@tint.or.th>
To:        freebsd-hackers@freebsd.org
Subject:   Re: regenerating /var/db/pkg
Message-ID:  <20100422191553.10082o6545n30cft@webmail.tint.or.th>
In-Reply-To: <20100422124932.GA21661@night.db.net>
References:  <4BCE5ECC.6070202@gmail.com> <20100422124932.GA21661@night.db.net>

next in thread | previous in thread | raw e-mail | index | archive | help
hi,

have you tried pkgdb -u ?

--=20

psr

=E0=B8=A1=E0=B8=B0=E0=B8=83=E0=B8=B2=E0=B8=A1 =E0=B8=85=E0=B8=B4=E0=B8=99=E0=
=B9=80=E0=B8=94=E0=B8=B4=E0=B8=99=E0=B8=94=E0=B8=99
=E0=B8=A1=E0=B8=B0=E0=B9=84=E0=B8=9F =E0=B8=85=E0=B8=99=E0=B9=80=E0=B8=AB=E0=
=B8=A5=E0=B8=B4=E0=B8=87=E0=B8=9F=E0=B9=89=E0=B8=B2

http://makham.blogspot.com


Quoting Diane Bruce <db@db.net>:

> 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
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




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