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

From: Carl Johnson <carlj_at_peak.org>
Date: Tue, 04 Jan 2022 22:02:51 UTC
tech-lists <tech-lists@zyxst.net> writes:

> On Tue, Jan 04, 2022 at 07:09:08PM +0000, Graham Perrin wrote:
>
>>Alternatively, I recently received advice to remove the contents of the
>>directory to *fix* freebsd-update:
>>
>><https://forums.freebsd.org/posts/549166>
>
> ;)
>
> thing is though, why is it there if there's no use for it? i'd have
> thought it would tidy up after itself when done[1], or there'd be a 
> switch you could give to the freebsd-update command that'd say like
> 'the update completed ok so tidy up these files' after you've 
> manually checked everything was working ok after the upgrade & reboot
>
> [1] maybe not by default so an update could be rolled back

I always clear that directory after I am sure that I won't want to roll
back the upgrade (I never have).  I usually leave the accessory files
there:
# ls -l /var/db/freebsd-update/
total 15
-rw-r--r--  1 root  wheel  800 Aug 24 13:28 pub.ssl
-rw-r--r--  1 root  wheel   50 Oct 12 10:52 serverlist
-rw-r--r--  1 root  wheel   50 Oct 12 10:52 serverlist_full
-rw-r--r--  1 root  wheel   25 Oct 12 10:52 serverlist_tried
-rw-r--r--  1 root  wheel  150 Oct 12 10:52 tINDEX.present
-rw-r--r--  1 root  wheel  112 Oct 12 10:52 tag

I don't think those files are necessary and I think that I have also
removed those without any problems.

-- 
Carl Johnson		carlj@peak.org