From owner-freebsd-current@freebsd.org Sun Mar 6 19:40:22 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 E2EB6A9593E for ; Sun, 6 Mar 2016 19:40:22 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D3B3F188; Sun, 6 Mar 2016 19:40:22 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by freefall.freebsd.org (Postfix) with ESMTP id 4DB881B66; Sun, 6 Mar 2016 19:40:22 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Sun, 6 Mar 2016 19:40:20 +0000 From: Glen Barber To: Baptiste Daroussin Cc: Matthew Seaman , freebsd-current@freebsd.org Subject: Re: [CFT] packaging the base system with pkg(8) Message-ID: <20160306194020.GA77554@FreeBSD.org> References: <20160302235429.GD75641@FreeBSD.org> <56D81174.3070000@freebsd.org> <20160306113957.GJ31877@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: <20160306113957.GJ31877@ivaldir.etoilebsd.net> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer User-Agent: Mutt/1.5.24 (2015-08-30) 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: Sun, 06 Mar 2016 19:40:23 -0000 --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > >=20 > > 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. > >=20 > > 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.) > >=20 > > 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. > >=20 > > 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'? > >=20 >=20 > It is planned to have a "precious" flag for packages which will prevent p= kg > delete -a from dropping them >=20 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. Glen --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJW3IefAAoJEAMUWKVHj+KTBfQQAIjlfawrnU9AneKARCuyfSk5 uhBsk2YmGz6q00FSp9ZXAxv8dPu9mFELLv3AQ1QLqtzNSab2CFQDJINfLnLZsuT5 P8lA8404t7Nm871CRTaB+f09ivkPmvRvF7rcf1ioCJfufHYwxvvwxdubJ9eGTDMv 0Llg2DY9cli7sWB31+Kx+8DHNVnoklRpXJFvkMQneI0GLr4bv8fxvKB6HZGFRxmw pS7myU7SiqDel/6elW57424xRVyGIA4M4PttpeYXEfuygLdvxxAgJUyCsc32ePsr Nq0OHnF2VUd6YfqQoHWSo/RTlVU/KhCQoM5w+r8cq5XCldcJf26KX9Ck642PpS15 BO7vJzSNRCdV9lBlxpvR1t7KK8l/1Dl1znTTv/JF903AY1m40aok7ib8XvD1avGZ 7/G0yw+CxpYGpzaQ3ozp8Aj3SJMlux4/cyzfHzNqhVmLXixcAYUyz9MEOdfLQymE ixwXP07+CINOAVssEq9YSNO5xn7zBcD7hhEbyLmEk0JFPuqC+oJa7GVTJ5J+fDuw XvIx0u7uqJ+Pdt4nKugyw6sSCk5kx7WMeVpiKdO4C907WTPoDFWNsAr5Vntov3v1 q26TI71Q2atS7BNNtZOT/mJaQDIdP3TeVjLEgzcoLQhxZD3gp+AMLSYxLIuuN4yB 54NahMgoq0RjcpZ2JPPy =J/pS -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--