使用 --download-only 选项
apt-get install --download-only pkg-name
apt-get 会把软件包和相关的依赖文件下载到 /var/cache/apt/archives 目录中,下次安装软件的时候就不需要下载操作了。
参考:https://unix.stackexchange.com/questions/408346/how-to-download-package-not-install-it-with-apt-get-command