From owner-freebsd-questions@FreeBSD.ORG Wed May 3 14:48:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6ED716A421 for ; Wed, 3 May 2006 14:48:35 +0000 (UTC) (envelope-from freebsd@voidmain.net) Received: from tiltup.nepinc.com (tiltup.nepinc.com [66.207.136.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 102E343D72 for ; Wed, 3 May 2006 14:48:31 +0000 (GMT) (envelope-from freebsd@voidmain.net) Received: from [192.100.100.110] (pgh.nepinc.com [66.207.129.50]) (authenticated bits=0) by tiltup.nepinc.com (8.13.4/8.13.4) with ESMTP id k43Eq6kS052610; Wed, 3 May 2006 10:52:07 -0400 (EDT) (envelope-from freebsd@voidmain.net) Message-ID: <4458C2B7.40605@voidmain.net> Date: Wed, 03 May 2006 10:48:23 -0400 From: Tom Grove User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060325 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Huff References: <17496.48046.574945.900645@jerusalem.litteratus.org> In-Reply-To: <17496.48046.574945.900645@jerusalem.litteratus.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: how get "/var/db/pkg"? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@voidmain.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 May 2006 14:48:35 -0000 Robert Huff wrote: >xiang writes: > > > >> Today,i run "pkgdb -F",but get a error message:"you do not own >> /var/db/pkg",becouse i had delete /var/db/pkg by oversight just >> the other day. >> >> how can i do now? >> >> > > If you have deleted all contents of /var/db/pkg, and you don't >have a backup, you're screwed. You'll have to reinstall every to >rebuild the db. > If, however, you just deleted pkgdb.db then "pkgdb -U" will >repopulate it. > > > Robert Huff > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > If you haven't run locate since you delete /var/db/pkg you could run: locate "/var/db/pkg" This will at least give you a partial (maybe a full) listing of everything you have installed. From there you could do a script that does something like: for $program in pkg_delete $program pkg_add $program Just a thought.... -Tom Grove