Date: Thu, 6 Jan 2022 21:37:03 +1100 From: andrew clarke <mail@ozzmosis.com> To: freebsd-questions@freebsd.org Subject: Re: size of /var/db/freebsd-update Message-ID: <20220106103703.j7v3b36jpltdq4eh@ozzmosis.com> In-Reply-To: <YdNIjQQ08LYWU8TM@ceres.zyxst.net> References: <YdNIjQQ08LYWU8TM@ceres.zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2022-01-03 19:03:41, tech-lists (tech-lists@zyxst.net) wrote: > $ sudo du -sh /var/db/freebsd-update > 5.8G /var/db/freebsd-update > > this is a huge amount of space, as the vm is 64GB. What can I do to free up > the space without breaking freebsd-update? I guess it's the update history > but couldn't find anything in the manpage on how to maintain it > 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: $ sudo freebsd-update fetch freebsd-update: Directory does not exist or is not writable: /var/db/freebsd-update So just recreate it manually: $ sudo mkdir /var/db/freebsd-update Now the directory will be repopulated with metadata the next time you run "freebsd-update fetch": $ sudo freebsd-update fetch Looking up update.FreeBSD.org mirrors... 2 mirrors found. Fetching public key from update2.freebsd.org... done. Fetching metadata signature for 13.0-RELEASE from update2.freebsd.org... done. Fetching metadata index... done. Fetching 2 metadata files... done. Inspecting system... done. Preparing to download files... done. No updates needed to update system to 13.0-RELEASE-p5. $ sudo ls -l /var/db/freebsd-update total 79 drwxr-xr-x 2 root wheel 4 6 Jan 21:34 files -rw-r--r-- 1 root wheel 800 4 Nov 07:14 pub.ssl -rw-r--r-- 1 root wheel 50 6 Jan 21:34 serverlist -rw-r--r-- 1 root wheel 50 6 Jan 21:34 serverlist_full -rw-r--r-- 1 root wheel 25 6 Jan 21:34 serverlist_tried -rw-r--r-- 1 root wheel 112 6 Jan 21:34 tag -rw-r--r-- 1 root wheel 150 6 Jan 21:34 tINDEX.present
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220106103703.j7v3b36jpltdq4eh>