filesize -package:hackage-security -package:http-conduit -package:tar-conduit -package:pantry package:directory

Obtain the size of a file in bytes.