From owner-freebsd-questions@FreeBSD.ORG Fri Apr 27 22:58:16 2007 Return-Path: X-Original-To: questions@freebsd.org 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 3664016A403 for ; Fri, 27 Apr 2007 22:58:16 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id BC63D13C45E for ; Fri, 27 Apr 2007 22:58:15 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so784587ugh for ; Fri, 27 Apr 2007 15:58:14 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dEiqR0D6s1WDXJXtf3kM+uMLMShQZ24yAyC/V7nYH57zTl/jknTEj6WX4ZkyioyEL0ob1wfurljh4rqGjku3+fEhwBWHWu981VDqCZRTeBjGfpr3WMr28MyORUK4dJmDF3GOECTReL3bvUyjBs7RdWxoejyZWNPBkOxM50JpcuY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Gnv11r5sbHAXljreR2cfQZQwZ0iTUky9bAMSW8jKn/ygk0uFI3aXX4CLbwrcwCgaptuzjzjrv8tujZRaU8a1LJwCcF48RUpam/wd+lq8htkUj4W2+V0zetSlXIzYoMPrDObmvFQW2/TtWc/hs99edrMkdx+QOAOzeCAVdFYTFMQ= Received: by 10.82.120.14 with SMTP id s14mr6730463buc.1177714694646; Fri, 27 Apr 2007 15:58:14 -0700 (PDT) Received: by 10.82.148.12 with HTTP; Fri, 27 Apr 2007 15:58:14 -0700 (PDT) Message-ID: Date: Fri, 27 Apr 2007 17:58:14 -0500 From: "illoai@gmail.com" To: "Derrick Ryalls" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: FreeBSD-questions Subject: Re: Desktop rebuild 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, 27 Apr 2007 22:58:16 -0000 On 27/04/07, Derrick Ryalls wrote: > I have a laptop that I am currently updating world to the latest from > the v6 branch, once that is done I want to completely start fresh with > the GUI. Right now I have gnome in a mostly working state, a mostly > out of date KDE and a bunch of other random crud I have installed over > the last 16 months or so. Instead of trying to use portupgrade and > have it fail out/fix/restart, I was thinking life would be easier if I > just removed anything graphical and start that from scratch. This way > all my settings/data remain intact and I can just do a pkg install the > new stuff. > > Is anyone aware of a quick/safe way of blowing away nearly all > installed apps as such to start from near scratch. I do use bash and > probably a couple other non-GUI installs, so I didn't necessarily want > to kill _all_ installed ports/pkgs but I might be willing to do that > if needed. > > Any thought on the best way to approach this? The best method I have come up with is to first gather a list of leaf packages with ports-mgmt/portmaster: $ portmaster -l and then (assuming you have ports-mgmt/portupgrade installed): $ pkg_deinstall -r or $ pkg_delete -r ports-mgmt/pkg_cutleaves is a bit overly thorough (and underly[1] conservative) for my tastes, but may be more your style. This shouldn't delete anything required by the stuff you want to keep and should clean out most of the kipple. Multiple runs are suggested and deleting root packages (as listed under portmaster -l) most likely won't harm anything (though some of them may be reinstalled when you upgrade). pkg_deinstall has the advantage of being able to issue $ pkg_deinstall -Rr kde* , which will delete anything requiring kde and required by kde (at least that is not required by some other package), and the disadvantage of requiring that both perl and ruby be installed. [1] May not be an honistically truthifiable word. -- --