From owner-freebsd-questions@FreeBSD.ORG Wed May 3 14:18:44 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 52DD416A422 for ; Wed, 3 May 2006 14:18:44 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp01.lnh.mail.rcn.net (mx12.mrf.mail.rcn.net [207.172.4.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86EAF43D6A for ; Wed, 3 May 2006 14:18:43 +0000 (GMT) (envelope-from roberthuff@rcn.com) Received: from 209-6-102-190.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.102.190]) by smtp01.lnh.mail.rcn.net with ESMTP; 03 May 2006 10:19:17 -0400 X-IronPort-AV: i="4.05,84,1146456000"; d="scan'208"; a="197114749:sNHT137764094" From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17496.48046.574945.900645@jerusalem.litteratus.org> Date: Wed, 3 May 2006 10:18:22 -0400 To: freebsd-questions@freebsd.org In-Reply-To: References: X-Mailer: VM 7.17 under 21.5 (beta26) "endive" XEmacs Lucid Subject: how get "/var/db/pkg"? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 May 2006 14:18:44 -0000 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