Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2016 18:28:09 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Glen Barber <gjb@FreeBSD.org>
Cc:        Baptiste Daroussin <bapt@FreeBSD.org>, Matthew Seaman <matthew@FreeBSD.org>, freebsd-current@freebsd.org
Subject:   Re: [CFT] packaging the base system with pkg(8)
Message-ID:  <alpine.BSF.2.20.1603061825180.92125@wonkity.com>
In-Reply-To: <20160306194020.GA77554@FreeBSD.org>
References:  <20160302235429.GD75641@FreeBSD.org> <56D81174.3070000@freebsd.org> <20160306113957.GJ31877@ivaldir.etoilebsd.net> <20160306194020.GA77554@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1603061825180.92125>