来源:https://askubuntu.com/questions/30482/is-there-an-apt-command-to-download-a-deb-file-from-the-repositories-to-the-curr
- 可能需要 root 权限
apt-get download $PKG
apt download $PKG
aptitude download $PKG
- 不需要 root 权限,不过可能会下载很多
wget $(apt-get install --reinstall --print-uris -qq $PKG | cut -d"'" -f2)
- 下载一个
wget $(apt-get install --reinstall --print-uris -qq $PKG | cut -d"'" -f2 | grep "/${PKG}_")
- 安装 deb 文件
dpkg -i your_file_name.deb