zzyyll2

ubuntu下载安装文件和依赖包

1、apt update  更新包信息

2、发现包的依赖并下载到当前目录,以下载包iputils-ping 为例

apt download  `apt-cache depends iputils-ping | grep Depends | cut -d: -f2 | tr -d "<>"`

apt download iputils-ping

3、使用dpkg安装,deb文件就是第二步下载的文件

dpkg --install libc6_2.31-0ubuntu9.2_amd64.deb libgcrypt20_1.8.5-5ubuntu1_amd64.deb libcap2_1%3a2.32-1_amd64.deb libcap2-bin_1%3a2.32-1_amd64.deb iputils-ping_3%3a20190709-3_amd64.deb

 

分类:

技术点:

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2022-01-19
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
猜你喜欢
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
相关资源
相似解决方案