Re: size of /var/db/freebsd-update

From: andrew clarke <mail_at_ozzmosis.com>
Date: Thu, 06 Jan 2022 13:40:04 UTC
On 2022-01-06 11:23:01, Steve O'Hara-Smith (steve@sohara.org) wrote:

> On Thu, 6 Jan 2022 21:37:03 +1100
> andrew clarke <mail@ozzmosis.com> wrote:
>
> > > with regards to size.
> >
> > After a successful update it's safe to delete that directory entirely.
> >
> > $ sudo rm -rf /var/db/freebsd-update/
> >
> > The only minor hiccup is freebsd-update will fail now
> > that /var/db/freebsd-update/ no longer exists:
>
> 	So instead just remove the contents viz:
>
> sudo rm -rf /var/db/freebsd-update/*
>                                   ^
> 	Just don't put a space here.

Combining wildcards with sudo is a bit dangerous, but either way this still
won't work since non-root users ordinarily don't have read permission for
the freebsd-update directory, so the wildcard can't be expanded.