dpkg-query -L <package_name>
可以查询该软件包的所有文件,比如查询dnsutils
包:
~# dpkg-query -L dnsutils
/.
/usr
/usr/bin
/usr/bin/delv
/usr/bin/dig
/usr/bin/dnstap-read
/usr/bin/mdig
/usr/bin/nslookup
/usr/bin/nsupdate
/usr/share
/usr/share/doc
/usr/share/doc/dnsutils
/usr/share/doc/dnsutils/changelog.Debian.gz
/usr/share/doc/dnsutils/changelog.gz
/usr/share/doc/dnsutils/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/delv.1.gz
/usr/share/man/man1/dig.1.gz
/usr/share/man/man1/dnstap-read.1.gz
/usr/share/man/man1/mdig.1.gz
/usr/share/man/man1/nslookup.1.gz
/usr/share/man/man1/nsupdate.1.gz
默认显示会将所有文件都显示出来,如只想显示可执行文件,可以进行筛选:
~# dpkg-query -L dnsutils | grep "/bin/"
/usr/bin/delv
/usr/bin/dig
/usr/bin/dnstap-read
/usr/bin/mdig
/usr/bin/nslookup
/usr/bin/nsupdate
如需要查询debian/ubuntu命令属于哪个软件包可访问:https://www.jianshu.com/p/c50c2acffa74
网友评论