From owner-freebsd-questions@FreeBSD.ORG Wed Jun 13 21:27:23 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 185FF106564A for ; Wed, 13 Jun 2012 21:27:23 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id BFE368FC1F for ; Wed, 13 Jun 2012 21:27:22 +0000 (UTC) Received: by ghbz22 with SMTP id z22so996671ghb.13 for ; Wed, 13 Jun 2012 14:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=FPfL+qsRYwKfBFoGyUqNLCflMUhBwmFGXXFanAUvDSg=; b=gmI6x9BD0PA42vkPGakxlGHB2nbHycTVVt/hpKq90ltsAziIOf3SjYgxvPbknCdOpi 2SnqfA3wsD0qGEhtWWiuIzQiu6CAoEDkxRyfiah5voZ0I/XaGnMlDwpNLVgJdr8Hr+Oz ys4ZO51/nM9AKpRacxAnl5gs+g2yDJ21yipKI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=FPfL+qsRYwKfBFoGyUqNLCflMUhBwmFGXXFanAUvDSg=; b=MluHIeYayGJ3amFI7AbUvPxk3PDOKa1O8twApwStarrkQxS3r3UvRaOa9ZW1yML01d O4ZnDAgevWYVRno5WTRxBlZm7WnkcG7n+bdY1rST6UjSBU2KowxQCV0Q9raT2MPulnTd nReWqe9036vnzvCLbekUA0+CNHiv4+cdmNx6Qid5XmBHz+XvCKM8SPzTDAzJWDNdN6oY h1/kpsxpWPrtN9LT5TvrQWwXc3422SG9q6Zde1CSDoW5ly7Ntlu7LUBM5I5MfSl5WrVy kxeMlSCGyYtLT+sMp4chtqdS4BJJE62wY9mWIOG8FCLHoAN6RwSUoygSqc4SF55kqewX uIYQ== Received: by 10.60.1.165 with SMTP id 5mr25872386oen.36.1339622842003; Wed, 13 Jun 2012 14:27:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.204.69 with HTTP; Wed, 13 Jun 2012 14:26:51 -0700 (PDT) In-Reply-To: References: From: Eitan Adler Date: Wed, 13 Jun 2012 14:26:51 -0700 Message-ID: To: jb Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnjrpHXiCL8vyY8pNwiVjtTT0coF5Ec4r1SewQzZwM1OqvNTF8ChVvnaWyX+8MpFAVMAXzp Cc: freebsd-questions@freebsd.org 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 21:27:23 -0000 On 13 June 2012 12:17, 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.' > > jb This will work if you need minimal downtime, but *will* come back to bite you some time down the line. -- Eitan Adler