From owner-freebsd-questions@FreeBSD.ORG Mon Apr 30 18:47:03 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 D1E8516A401 for ; Mon, 30 Apr 2007 18:47:03 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.228]) by mx1.freebsd.org (Postfix) with ESMTP id 7F1CC13C458 for ; Mon, 30 Apr 2007 18:47:03 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: by nz-out-0506.google.com with SMTP id s1so1374373nze for ; Mon, 30 Apr 2007 11:47:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tvIC1hML2yxz8P/VJ++bPVRzq9NtMimG5CfNkJJMvk2TnJgthSm4JNXnjI9KB6t52PsZoKuPo9K7U+rrEiBYXZhXknow3wEF0f8SFUarARBlw9fQoZWFE74UbM6LKexoh/LcZMbSP+RxKjGhHrQW5qLeyOX/X6/Bn5Ag6rcVhdk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ATwUTjiU7BUrqkVML/v0cw41V0zB+SZ+klub9Kmw05QMRKZ3RrVyK6SsBOSA9WxbS15/7+2uvvwaP/30XpJXBLu46k96R5yxSHSt5IrUivBNidgH9AfoTfGgRoaeNUZX6eb/Ced9wMva03AgVFY6lqy/Iry5T5fnaTLa1CvvgQg= Received: by 10.114.52.1 with SMTP id z1mr2096316waz.1177958821419; Mon, 30 Apr 2007 11:47:01 -0700 (PDT) Received: by 10.115.78.18 with HTTP; Mon, 30 Apr 2007 11:47:01 -0700 (PDT) Message-ID: Date: Mon, 30 Apr 2007 11:47:01 -0700 From: "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: Mon, 30 Apr 2007 18:47:04 -0000 On 4/27/07, illoai@gmail.com wrote: > 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. > I ended up just creating a new user with a /bin/sh shell, doing a pkg_delete -a and reinstalling the apps. I was very impressed with how quickly pkg_add -r xorg and such (from the handbook) ran and got me back to a working desktop. Just need to selectively add any app I really want reinstalled now. Though I did run into an issue with portupgrade and needed to delete its database, per the entry in UPDATING.