代码改变世界

dpkt命令

2023-05-01 17:25  john_zhu_t  阅读(35)  评论(0)    收藏  举报

1.Listing all files included in a package
$ sudo dpkg -L openvpn

2.For all packages, installed or not
$ apt-file -F list ncurses-term

3.Listing only executable files included in a package
$ dlocate -lsbin openvpn
4. Also use the script below to show binary file
$ apt-file -F list openvpn |cut -d ' ' -f2 | while read file; do [[ -x $file && -f $file ]] && echo "$file"; done