[技巧] 如何查看Debian/Ubuntu软件包.deb的内容

本文介绍了如何在Debian/Ubuntu系统中查看.deb软件包的内容,包括使用apt-file更新索引,列出包文件内容,以及通过dpkg-deb命令详细查看包内的文件列表。
摘要由CSDN通过智能技术生成
在Redhat系Linux版本(CentOS/Fedora/RHEL)下,我们想要查看rpm包的内容,直接使用 rpm -ql packagename 命令就可以了,那么在Debian/Ubuntu Linux下又如何查看.deb软件包的内容呢?

系统默认安装的软件和命令无法查看,这时候我们需要安装 apt-file 命令工具,该命令可以查看使用APT作为软件包管理器的系统deb文件的内容。

安装apt-file
  1. #apt-get update && apt-get install apt-file
安装过程中,将会看到类似下面的输出信息:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libapt-pkg-perl libconfig-file-perl liblist-moreutils-perl menu
Suggested packages:
  gksu kdebase-bin kdebase-runtime ktsuss sux
The following NEW packages will be installed:
  apt-file libapt-pkg-perl libconfig-file-perl liblist-moreutils-perl menu
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 626kB of archives.
After this operation, 2687kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrors.kernel.org lenny/main libconfig-file-perl 1.42-1 [11.7kB]
Get:2 http://mirrors.kernel.org lenny/main libapt-pkg-perl 0.1.22+b1 [89.6kB]
Get:3 http://mirrors.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值