From owner-freebsd-questions@FreeBSD.ORG Thu Jun 19 12:48:39 2003 Return-Path: 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 280FB37B401 for ; Thu, 19 Jun 2003 12:48:39 -0700 (PDT) Received: from rwcrmhc12.attbi.com (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 727C143FAF for ; Thu, 19 Jun 2003 12:48:38 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[24.147.188.198]) by attbi.com (rwcrmhc12) with ESMTP id <2003061919482701400adp4je>; Thu, 19 Jun 2003 19:48:27 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.7) with ESMTP id h5JJmQ1V011033; Thu, 19 Jun 2003 15:48:26 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h5JJmQY3011030; Thu, 19 Jun 2003 15:48:26 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: Peter Leftwich References: <20030617212121.H32633-100000@Video2Video.Com> From: Lowell Gilbert Date: 19 Jun 2003 15:48:26 -0400 In-Reply-To: <20030617212121.H32633-100000@Video2Video.Com> Message-ID: <44isr1j1bp.fsf@be-well.ilk.org> Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: FreeBSD Questions LIST Subject: Re: "Resetting" ports and pkg's? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 19:48:39 -0000 Peter Leftwich writes: > Is there some way to "reset" what my FreeBSD 4.7-RELEASE O.S. "knows" about > what is currently installed? I ask because a while back, I accidentally > deleted part of /usr/local/lib/ (in unlinking a directory). > > Now, whenever I install a port or run `pkg_add -rf` something is always > wrong and indicated by an error message. Help! Thanks CC: me please... > > PS - Is it as easy as just `rm -rf /var/db/pkg/` or just one directory? Hmm. Depends on what you want to do again in the future. If it were I, I would probably pkg_delete everything there, clean out /usr/local, and reinstall them.