Correct, those commands will need Internet connectivity to work.
Short answer, you don't.....you'll need to download those files to a USB drive or other device and use a different command. Hopefully the files you need do not have any dependencies that need to be downloaded also.

