From owner-freebsd-questions@FreeBSD.ORG Mon Dec 4 19:32:43 2006 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 3A15116A403 for ; Mon, 4 Dec 2006 19:32:43 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-0-0-cust107.cdif.cable.ntl.com [81.104.168.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38FB743CC9 for ; Mon, 4 Dec 2006 19:32:05 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GrJYL-0004Ui-Sb; Mon, 04 Dec 2006 19:32:37 +0000 Date: Mon, 4 Dec 2006 19:32:37 +0000 From: Ceri Davies To: Drew Message-ID: <20061204193237.GA41115@submonkey.net> Mail-Followup-To: Ceri Davies , Drew , questions@freebsd.org References: <715841970612041105tc406d79qfd275b5886dc1e38@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <715841970612041105tc406d79qfd275b5886dc1e38@mail.gmail.com> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Ceri Davies Cc: questions@freebsd.org Subject: Re: Ports: Starting over from scratch? 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, 04 Dec 2006 19:32:43 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 04, 2006 at 01:05:08PM -0600, Drew wrote: > I'm running into some problems on a desktop box that I've not seen anywhe= re > else with upgrading multiple ports. The problem is so extensive, and a > solution not being forthcoming, I'm very tempted to make deinstall from > /usr/ports and then pkg_deinstall -a, and start over again. Does anyone h= ave > any advice or input on a procedure like this? I did something similar recently when I decided to remove all traces of kde and gnome from my desktop in favour of wmii. Basically, I did the following. o List all ports on the system pkg_info -E \* > /tmp/installed_ports o Edit the list, and delete every line except that which I know I want cp /tmp/installed_ports /tmp/required_ports vi /tmp/required_ports o Remove everything left in the file, letting the dependencies take care of keeping everything that I actually need pkg_delete `cat /tmp/required_ports` o Have pkgdb fix up any problems (there weren't any) pkgdb -Ff In my case though, I didn't want the ports that were being removed. It sounds llike you do, in which case you could also save the origins of the ports that you have installed and install them again afterwards. To save the origins of all of your installed ports: pkg_info -oa | grep / > /tmp/port_origins Then you can just throw them all back in with portinstall or similar. Ceri --=20 That must be wonderful! I don't understand it at all. -- Moliere --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFdHfVocfcwTS3JF8RAuyGAKC5J0J1HzgJXbP3QRqhrdRyFPetjACfdgkb CVl68vxM8lKEwSv1DeCdS8g= =sxlD -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--