mount -t tmpfs tmpfs /var
mount -t tmpfs -o mode=01777 tmpfs /tmp
size Specifies the total file system size in bytes, unless suffixed with one of k, m, g, t, or p, which denote byte, kilobyte, megabyte, gigabyte, terabyte and petabyte respectively. If zero (the default) or a value larger than SIZE_MAX - PAGE_SIZE is given, the available amount of memory (including main memory and swap space) will be used.
root@OPNsense:~ # ls -l /var/cache/pkglrwxr-xr-x 1 root wheel 19 Jun 30 23:55 /var/cache/pkg -> /root/var/cache/pkg
root@OPNsense:~ # ls -l /var/db/pkglrwxr-xr-x 1 root wheel 16 Jun 30 23:55 /var/db/pkg -> /root/var/db/pkg