From owner-freebsd-questions@freebsd.org Wed Dec 9 07:50:27 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4922E9D4DEC for ; Wed, 9 Dec 2015 07:50:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0FE491CD4 for ; Wed, 9 Dec 2015 07:50:26 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [93.104.9.43] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1a6ZW2-0002zy-UZ for freebsd-questions@freebsd.org; Wed, 09 Dec 2015 08:50:23 +0100 Received: from localhost.my.domain (c720-r285885-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id tB97oLNm001758 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 9 Dec 2015 08:50:22 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id tB97oLJW001757 for freebsd-questions@freebsd.org; Wed, 9 Dec 2015 08:50:21 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 9 Dec 2015 08:50:21 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: remove all installed packages Message-ID: <20151209075021.GA1746@c720-r285885-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org References: <20151208200303.GA2194@c720-r285885-amd64> <20151208202917.GA2269@c720-r285885-amd64> <20151208232227.GA65909@neutralgood.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20151208232227.GA65909@neutralgood.org> X-Operating-System: FreeBSD 11.0-CURRENT r285885 (amd64) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.9.43 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2015 07:50:27 -0000 El día Tuesday, December 08, 2015 a las 06:22:27PM -0500, kpneal@pobox.com escribió: > On Tue, Dec 08, 2015 at 09:29:17PM +0100, Matthias Apitz wrote: > > El día Tuesday, December 08, 2015 a las 12:21:54PM -0800, Brian W. escribió: > > > > > That /usr/local rm is gross overkill. If you have the old pkg system an ls > > > of /var/db/pkg with the results sent to pkg_del would work. > > > > Sorry, I was asking to remove completely all ports installed with > > pkg(8), and this in a fast way w/o going through all dependencies; just > > to prepare for a complete fresh installation. > > It also deletes any customized configuration files in "/usr/local/etc". > > If you must go this route then make a point of not accidentally deleting > something you'll have wanted to keep. I maintain a list of all modified or added files below /usr/local, and based on this backups of them; thanks for all hints, yours and others; matthias -- Matthias Apitz, ✉ guru@unixarea.de, 🌐 http://www.unixarea.de/ ☎ +49-176-38902045