From owner-freebsd-questions@FreeBSD.ORG Mon Dec 27 01:48:46 2004 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 0C02016A4CE for ; Mon, 27 Dec 2004 01:48:46 +0000 (GMT) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FA2D43D41 for ; Mon, 27 Dec 2004 01:48:45 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from [192.168.1.3] (pool-68-160-208-232.ny325.east.verizon.net [68.160.208.232]) by pi.codefab.com (8.12.11/8.12.11) with ESMTP id iBR1mdFG035308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Dec 2004 20:48:41 -0500 (EST) Message-ID: <41CF69EA.6070002@mac.com> Date: Sun, 26 Dec 2004 20:48:26 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Vilot References: <41CF5C95.8060702@vilot.com> In-Reply-To: <41CF5C95.8060702@vilot.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.8 required=5.5 tests=RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=disabled version=3.0.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on pi.codefab.com cc: questions@freebsd.org Subject: Re: Oooooops: make deinstall 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: Mon, 27 Dec 2004 01:48:46 -0000 Tom Vilot wrote: > Is there an easy way to say, either with portupgrade or make or any > other tool, the equivalent of: > > "what ports are installed? Are they *really* installed? > What do they depend on? Are those installed? Are they *really* installed?" pkg_info, pkg_info -ag, pkg_info -ar (or pkg_info -aR, depending on which way you want to see the dependencies). > Of course I can do portupgrade -l "<" -O, but I think my question is: > does that tell me if my system is actually clean? No, although running a "pkgdb -fu" and then a "portupgrade -a" would probably solve most of your issues. A "portupgrade -af" would certainly do so, although it would probably take a day or two to finish... > Also --- is there some way of looking at an "audit trail" or some way > that I can see what ports/packages I had previously installed before I > accidentally did make deinstall? If you created a /usr/ports/packages directory, portupgrade and such will leave the precompiled binary packages you've created on your system there. Otherwise, consult your backups. -- -Chuck