查询deb包完整下载路径

需求:没有linux环境下,下载一个deb包;包传输速度限制,将下载链接直接分享他人

准备:依靠网络源和apt

示例:查询sl包下载路径

1、apt-cache show sl

得到pool/universe/s/sl/sl_5.02-1_arm64.deb

2、apt policy sl


得到https://archive.kylinos.cn/kylin/KYLIN-ALL

拼接得到https://archive.kylinos.cn/kylin/KYLIN-ALL/pool/universe/s/sl/sl_5.02-1_arm64.deb

3、小火车启动

安装器安装离线包,执行sl,启动小火车

注:

1、下载的包依赖需要解决,使用命令apt depends sl   或者apt-cache depends sl查看依赖

2、linux本地直接下载包

apt-get download teamviewer #下载到当前路径
或者 apt install -d teamviewer #下载到/var/cache/apt/archives

原文地址:https://www.cnblogs.com/gpysir/p/15396960.html