When pkg installes a packet that requires more than some hundred MB it uses gigabytes to show the required disk space. But when the needed disk space is smaller that 1 gigabyte, it gives 0 gigabyte as space requirement. Steps to reproduce: # pkg install racket Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. The following 1 packages will be affected (of 0 checked): New packages to be INSTALLED: racket: 6.1_2 The process will require 0 GiB more space. 67 MiB to be downloaded.
Can you specify which version of pkg?
Fixed some time back in git: https://github.com/freebsd/pkg/commit/3bdbed6aa34b34e325c506fbbde44516c947633d