From owner-freebsd-questions@FreeBSD.ORG Fri Nov 3 03:19:42 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 AE82C16A407 for ; Fri, 3 Nov 2006 03:19:42 +0000 (UTC) (envelope-from e.schuele@computer.org) Received: from alnrmhc11.comcast.net (alnrmhc11.comcast.net [206.18.177.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63D1B43D4C for ; Fri, 3 Nov 2006 03:19:42 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from [192.168.214.215] (cpe-76-184-133-124.tx.res.rr.com[76.184.133.124]) by comcast.net (alnrmhc11) with ESMTP id <20061103031940b1100fo3kpe>; Fri, 3 Nov 2006 03:19:40 +0000 Message-ID: <454AB54B.6060700@computer.org> Date: Thu, 02 Nov 2006 21:19:39 -0600 From: Eric Schuele User-Agent: Thunderbird 1.5.0.7 (X11/20061102) MIME-Version: 1.0 To: Robert Huff References: <1162399232.4866.25.camel@ugly> <4548D3DC.3060902@orchid.homeunix.org> <454A0699.2000904@computer.org> <17738.3589.181431.82582@jerusalem.litteratus.org> In-Reply-To: <17738.3589.181431.82582@jerusalem.litteratus.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: /var corrupted..... 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: Fri, 03 Nov 2006 03:19:42 -0000 On 11/02/2006 09:25, Robert Huff wrote: > Eric Schuele writes: > >> How can I force a reinstall of a port and all its deps. > > The port itself will handle anything "above". Well, that's what I had thought would happen, but the port does not seem to re-register the dependencies. It simply notes that they are present, and builds and registers the port I have attempted to `make install`. So for example if I go to /usr/ports/www/firefox, and `make install` it. I only end up with firefox in my /var/db/pkg folder. None of its deps appear. > As for things "below" ... you're pretty much hosed. If the pkg > db (or equivalent) existed, it would know which ports had been > installed and could rebuild things. > Without the pkg db, the only record of what _should_ be > installed is in your head. Yes.. this is now painfully obvious to me. I guess in some way I had thought the pkg db, was simply a convenience. But I now realize it is *the authority* on what is installed on your machine. While I do plan to back it up from now on... I have added the two small scripts to my toolbox as well. I alias the following as port_install #!/bin/sh # # Used to create a log file of things I have installed on a machine # make install clean && \ printf "`pwd`\t\t\t`date`\n" >> /root/maint/install/port_install.log and the following as port_deinstall (mind the word-wrap). #!/bin/sh # # Used to create a log file of things I have installed on a machine # SCRIPT_DIR=/root/maint/install grep -v `pwd` $SCRIPT_DIR/port_install.log > $SCRIPT_DIR/port_deinstall.log rm $SCRIPT_DIR/port_install.log mv $SCRIPT_DIR/port_deinstall.log $SCRIPT_DIR/port_install.log make deinstall Then I have a list of top level apps that *I* have installed. I am using the above today, as I am reinstalling all top level apps. :) > On the other hand, if you remeber > certain leaf ports installing them will drag in most of the > infrastructure. (My candidates: OpenOffice, Firefox, Apache, > something involving Java. GIMP.) It will still take time, but > within limits you can just let it run. > > A scenario for the future: my /var/db/pkg has ~620 entries, and > totals just over 62mb. Building a tarball took less than a minute > and ate another 60mb. Might be a sound investment. > yeah... I have already added /var/db/pkg to my backup scripts. I backup a bunch of system stuff every time I buildworld. I just wasn't getting that. Thanks. > > Robert Huff > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Regards, Eric