dpkg --listfiles用法
Le Fri 07 February 2025
dpkg --listfiles some-pkg
# or
dpkg -L some-pkg
列出已经安装的某个包的所拥有的文件列表。
比如列出nginx-light的文件列表:
root@ws-cfkazs-0 /workspace# dpkg -L nginx-light
/.
/usr
/usr/sbin
/usr/sbin/nginx
/usr/share
/usr/share/doc
/usr/share/doc/nginx-light
/usr/share/doc/nginx-light/copyright
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/nginx.8.gz
/usr/share/doc/nginx-light/changelog.Debian.gz