From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 22 13:10:06 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74E2B106564A for ; Thu, 22 Apr 2010 13:10:06 +0000 (UTC) (envelope-from pirat@tint.or.th) Received: from mail.tint.or.th (ns2.tint.or.th [122.154.13.210]) by mx1.freebsd.org (Postfix) with SMTP id 9D5248FC1C for ; Thu, 22 Apr 2010 13:10:05 +0000 (UTC) Received: (qmail 15868 invoked from network); 22 Apr 2010 12:59:10 -0000 Received: from www.tint.or.th (HELO alpha.nst.or.th) (122.154.13.80) by mail.tint.or.th with SMTP; 22 Apr 2010 12:59:10 -0000 Received: from 125.25.247.56.adsl.dynamic.totbb.net (125.25.247.56.adsl.dynamic.totbb.net [125.25.247.56]) by webmail.tint.or.th (Horde Framework) with HTTP; Thu, 22 Apr 2010 19:15:53 +0700 Message-ID: <20100422191553.10082o6545n30cft@webmail.tint.or.th> X-Priority: 3 (Normal) Date: Thu, 22 Apr 2010 19:15:53 +0700 From: =?utf-8?b?4LmE4Lie4Lij4Lix4LiKIA==?= =?utf-8?b?4Lio4Lij4Li14LmC4Lii4LiY4Liy?= To: freebsd-hackers@freebsd.org References: <4BCE5ECC.6070202@gmail.com> <20100422124932.GA21661@night.db.net> In-Reply-To: <20100422124932.GA21661@night.db.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) X-Mailman-Approved-At: Thu, 22 Apr 2010 17:51:56 +0000 Subject: Re: regenerating /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2010 13:10:06 -0000 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 : > 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.