From owner-freebsd-questions@FreeBSD.ORG Wed Jun 13 23:38:12 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 00049106564A for ; Wed, 13 Jun 2012 23:38:11 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 8326E8FC15 for ; Wed, 13 Jun 2012 23:38:11 +0000 (UTC) Received: by wibhj8 with SMTP id hj8so4756280wib.13 for ; Wed, 13 Jun 2012 16:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=yi6TtiWnsXualp5oON8V84wq8rZigP2+W+f2NwZJjTk=; b=L/Dsf8rhHIguDfmb3u5K4NkdTtOO+vPiqYrrT0etcGCIXEDb5spkNwbkd9Q0j1HCNI sfF2RvuelAnsG3KLqZPWWW7mphJB0Rker/dIgVncoFFFH98V+OZoFGMCEtDfkb/2LLtN uLeYuufqOyOIidiIQGpa/LO0UNKKyhjb7R/WibjUc1pF5xhy+IE4DQFuxpkicjU4X83D 3Dq07OJX4ASutyroaMtrE4NozeJTFNlc69afCEGbC1P3SrlX3fs3NrIX4ius/6A3ZaLl 0ueKQl6AYhzbGzMjyREU4AUPODBbGWZANSr33MgiidPIC9RPzcl3aj8WZ9BnQzI9VCHK HyhA== Received: by 10.180.84.6 with SMTP id u6mr41523281wiy.11.1339630690606; Wed, 13 Jun 2012 16:38:10 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id z8sm14105447wiy.1.2012.06.13.16.38.08 (version=SSLv3 cipher=OTHER); Wed, 13 Jun 2012 16:38:09 -0700 (PDT) Date: Thu, 14 Jun 2012 00:38:05 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20120614003805.61746d06@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Lost /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, 13 Jun 2012 23:38:12 -0000 On Wed, 13 Jun 2012 19:17:20 +0000 (UTC) jb wrote: > William Orr worrbase.com> writes: > > > > > Hello, > > > > I had a hard disk failure some time ago, and I ended up losing > > /var/db/pkg/ and everything under it (before you say I should've > > been backing it up, I know, I was actually doing an initial full > > when this happened). Is there a way I can restore it, or at least > > manually add entries I know for sure about? > > forums.freebsd.org/showthread.php?t=6466 > "The application themselves are still installed and will keep > functioning, you just removed the records of their installation. When > you later install newer versions, you may have to use a force flag to > overwrite files (the port thinks it is uninstalled after all). The > new port installations will get recorded in /var/db/pkg again.' I wouldn't do that, it's not as simple as that post suggests. It's likely to lead to a lot of files being orphaned, which may lead to build or runtime errors in the future, or vulnerabilities that portaudit can't detect.