From owner-freebsd-questions@freebsd.org Tue Dec 29 05:23:18 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 4DAD8A54095 for ; Tue, 29 Dec 2015 05:23:18 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 177A31E8F for ; Tue, 29 Dec 2015 05:23:17 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-17-9.dynamic.qsc.de [92.195.17.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 3A2E03CDE6; Tue, 29 Dec 2015 06:23:09 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id tBT5N80e002117; Tue, 29 Dec 2015 06:23:08 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 29 Dec 2015 06:23:08 +0100 From: Polytropon To: Erich Dollansky Cc: Matthias Apitz , FreeBSD Questions Subject: Re: remove all installed packages Message-Id: <20151229062308.ebd637b9.freebsd@edvax.de> In-Reply-To: <20151229080050.1780e0fc@X220.alogt.com> References: <20151208200303.GA2194@c720-r285885-amd64> <20151228202833.GA2425@c720-r285885-amd64> <20151229080050.1780e0fc@X220.alogt.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 29 Dec 2015 05:23:18 -0000 On Tue, 29 Dec 2015 08:00:50 +0800, Erich Dollansky wrote: > Hi, >=20 > On Mon, 28 Dec 2015 21:28:33 +0100 > Matthias Apitz wrote: >=20 > > El d=EDa Tuesday, December 08, 2015 a las 02:25:55PM -0600, Adam Vande > > More escribi=F3: > >=20 > > > Much depends on what is exactly installed but in general that looks > > > like a pretty terrible idea. If you're willing to going that far, > > > just recreate the whole system. > > >=20 > > > Otherwise pkg delete -a =20 > >=20 > > At the end of the day, I used this 'pkg delete -a', followed by an > > additional=20 > >=20 > > # pkg delete -f pkg > >=20 > did you take a look at /use/local? >=20 > It should be empty if you did not install own software. If I remember correctly, the system installer does create some directory structure in /usr/local, so it won't be entirely empty when the OS has been installed; /etc/mtree/BSD.local.dist should give some information. This file is also handy for preparing a new ports installation "from scratch" when /usr/local has been entirely deleted manually. --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...