Posted October 23, 2024
I have not tested it yet, but it seems that it handles dependencies, something that you would have to do manually with apt download.
From what I understand it simulates a full apt command on the offline machine, but instead of downloading anything (it can’t) an instructions file is generated. This file is then loaded on an online machine, and used to download everything needed for the offline one. Then the downloaded packages are transferred in bulk to the offline machine, and installed there.
You can find an usage example here: https://manpages.debian.org/bookworm/apt-offline/apt-offline.8.en.html#Sequence
From what I understand it simulates a full apt command on the offline machine, but instead of downloading anything (it can’t) an instructions file is generated. This file is then loaded on an online machine, and used to download everything needed for the offline one. Then the downloaded packages are transferred in bulk to the offline machine, and installed there.
You can find an usage example here: https://manpages.debian.org/bookworm/apt-offline/apt-offline.8.en.html#Sequence