@Tom-Elliott I understand that the list of packages depends on the OS installed, and, if I understood you correctly, the packages listed in the .fogsettings.
What I’m asking for is a way to calculate, on the target machine, the list of packages (& versions?) that would be needed to be installed in order for fog to be installed for the first time or for the existing fog installation to be upgraded.  That’s why I suggested that it be an argument to installfog.sh.
Imagine my fog server is on a network that is completely isolated from the Internet.  I have to be able to calculate the list of packages (& versions?) fog needs to operate, cp that list to an SD card or whatever as, say, deps.txt, then walk over to the machine with the same OS that does have Internet, mount the SD card, then do something like cat /media/.../deps.txt | apt-get install --download-only --bundle or whatever.  After all the bundles are downloaded, copy them to the SD card & sneakernet them back to the isolated fog server and install them.
Capice?