From owner-freebsd-current@freebsd.org Mon Mar 7 01:28:11 2016 Return-Path: Delivered-To: freebsd-current@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 EC767A93B5D for ; Mon, 7 Mar 2016 01:28:11 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B3C6ACA5; Mon, 7 Mar 2016 01:28:11 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u271S94I093273 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 6 Mar 2016 18:28:09 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u271S9xS093270; Sun, 6 Mar 2016 18:28:09 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 6 Mar 2016 18:28:09 -0700 (MST) From: Warren Block To: Glen Barber cc: Baptiste Daroussin , Matthew Seaman , freebsd-current@freebsd.org Subject: Re: [CFT] packaging the base system with pkg(8) In-Reply-To: <20160306194020.GA77554@FreeBSD.org> Message-ID: References: <20160302235429.GD75641@FreeBSD.org> <56D81174.3070000@freebsd.org> <20160306113957.GJ31877@ivaldir.etoilebsd.net> <20160306194020.GA77554@FreeBSD.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 06 Mar 2016 18:28:09 -0700 (MST) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2016 01:28:12 -0000 On Sun, 6 Mar 2016, Glen Barber wrote: > On Sun, Mar 06, 2016 at 12:39:57PM +0100, Baptiste Daroussin wrote: >> On Thu, Mar 03, 2016 at 10:27:00AM +0000, Matthew Seaman wrote: >>> On 03/02/16 23:54, Glen Barber wrote: >>>> Also note (as repeated below), running 'pkg delete -a' will implicitly >>>> remove base system packages after they are installed. >>> >>> This has the potential for many feet to be shot, given that up to now, >>> 'pkg delete -a' would always leave you with a viable system. >>> >>> We already make an exception for pkg itself -- you need 'pkg delete -fa' >>> to actually remove pkg(8) as well. (Note to self: this needs to be >>> documented in the pkg-delete(8) man page.) >>> >>> We should have similar exceptions for the essential bits of the base >>> system -- at minimum everything you need to boot the system up and >>> install stuff from a package repository. >>> >>> We should also have a command line that will remove all ported software >>> but leave the base intact. Maybe by adding '-r reponame' functionality >>> to 'pkg delete'? >>> >> >> It is planned to have a "precious" flag for packages which will prevent pkg >> delete -a from dropping them >> > > Note, there are valid use cases for deleting all packages, even those > marked as 'precious'. For example, a test chroot(8) or jail(8). So the > 'precious' flag would also need an override. # pkg delete -f --delete-my-precious-yes-i-know-just-do-it-already -a