From owner-freebsd-questions@FreeBSD.ORG Thu Jul 22 00:13:05 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DFA51065679 for ; Thu, 22 Jul 2010 00:13:05 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id EDB438FC16 for ; Thu, 22 Jul 2010 00:13:04 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1ObjPG-000Lsg-T1; Wed, 21 Jul 2010 20:13:04 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 51DE342C63F7; Wed, 21 Jul 2010 20:12:58 -0400 (EDT) Message-ID: <4C478D04.6020005@FreeBSD.org> Date: Wed, 21 Jul 2010 20:12:52 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: claudiu vasadi References: In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.3 (/) Cc: freebsd-questions@freebsd.org Subject: Re: rmconfig from all ports tree X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 00:13:05 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 claudiu vasadi wrote: > one solution I just created would be: > > for i in `find /usr/ports/ -type directory -print`; do `cd $i && make > rmconfig`;done > > but I am wondering if there is a "official way". man portsclean did not give > me any options to do it. > > > Another thing would be to make rmconfig in all dir's that are required to be > installed by a particular meta-port, for instance kde/gnome/xfce. Hi Claudiu, You can use one of these two targets: rmconfig - Remove the options config for this port. rmconfig-recursive - Remove the options config for this port and all dependencies. Or, if you want to use a big hammer and remove all configs for all ports, use: find /var/db/ports -type f -name options -print | xargs rm Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFMR40E0sRouByUApARAiAxAJ4tTVUwd1HdU1ZqZsTZdpmmHfK5swCdG4CL OG68m0jqHWogajdG0rn/ZSU= =ns+l -----END PGP SIGNATURE-----