From owner-freebsd-questions@freebsd.org Tue Dec 29 09:28:50 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 7A469A54632 for ; Tue, 29 Dec 2015 09:28:50 +0000 (UTC) (envelope-from sergeig.public@gmail.com) Received: from mail-pa0-x235.google.com (mail-pa0-x235.google.com [IPv6:2607:f8b0:400e:c03::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5222B1F19 for ; Tue, 29 Dec 2015 09:28:50 +0000 (UTC) (envelope-from sergeig.public@gmail.com) Received: by mail-pa0-x235.google.com with SMTP id uo6so100054470pac.1 for ; Tue, 29 Dec 2015 01:28:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=mw2ZhqbHtS3cTnLRD36dEdem9WvOrq+HcH5QBMOD6OI=; b=CcvB7JjQW5EJgLyo/HFus9NsKLFslOP5YfipDLcehRIdOMzSd2ndGuYABCxIr50ZRB Xpm+k/PkQjEQxxO8rO1ukyywy4kl5gbbysYDh66V6Vhefg1D2vmCORdZlZ1iHAcne5Ca fAHjbZMia8nAmMfGxQvK/AxkRdMAOJXtAj6RtF28gOu0hrwSr3F6qtUe+dg2nzGWtikS fR9frPAycaiOCM2+HYyRlhnhXCAoawaDV7ENj1MHSXaPOqoUCis6VxWHvPyA6XMAPC+A uwDPRyfvtq5eHPwAje4011AglZ5n7Vpi+eUMg8LDanzzru770j9Pl1oyKAAGvttjGGeu nuBg== X-Received: by 10.66.222.129 with SMTP id qm1mr41009906pac.10.1451381329903; Tue, 29 Dec 2015 01:28:49 -0800 (PST) Received: from SergeiMBP.local (c-24-16-122-177.hsd1.wa.comcast.net. [24.16.122.177]) by smtp.googlemail.com with ESMTPSA id oj9sm3687445pab.8.2015.12.29.01.28.49 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Dec 2015 01:28:49 -0800 (PST) Subject: Re: remove all installed packages To: freebsd-questions@freebsd.org References: <20151208200303.GA2194@c720-r285885-amd64> <20151228202833.GA2425@c720-r285885-amd64> From: Sergei G Message-ID: <56825250.9010900@gmail.com> Date: Tue, 29 Dec 2015 01:28:48 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151228202833.GA2425@c720-r285885-amd64> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 09:28:50 -0000 That's my procedure as well: pkg delete -a pkg remove -f pkg I also have the following 3rd command (not sure if it matters): rm -r /var/db/pkg On 12/28/15 12:28 PM, Matthias Apitz wrote: > El día Tuesday, December 08, 2015 a las 02:25:55PM -0600, Adam Vande More escribió: > >> 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. >> >> Otherwise pkg delete -a > At the end of the day, I used this 'pkg delete -a', followed by an > additional > > # pkg delete -f pkg > > and all was fine cleared and ready to be re-installed from the ports; > > matthias >