pacman -Ql <package_name>
或yay -Ql <package_name>
可以查询该软件包的所有文件,比如查询bind
包:
[manjaro@laptop ~]$ pacman -Ql bind
bind etc/
bind etc/bind.keys
bind etc/named.conf
bind usr/
bind usr/bin/
bind usr/bin/arpaname
bind usr/bin/ddns-confgen
bind usr/bin/delv
bind usr/bin/dig
bind usr/bin/dnssec-cds
bind usr/bin/dnssec-checkds
bind usr/bin/dnssec-coverage
bind usr/bin/dnssec-dsfromkey
bind usr/bin/dnssec-importkey
bind usr/bin/dnssec-keyfromlabel
bind usr/bin/dnssec-keygen
......
[manjaro@laptop ~]$ yay -Ql bind
bind etc/
bind etc/bind.keys
bind etc/named.conf
bind usr/
bind usr/bin/
bind usr/bin/arpaname
bind usr/bin/ddns-confgen
bind usr/bin/delv
bind usr/bin/dig
bind usr/bin/dnssec-cds
bind usr/bin/dnssec-checkds
bind usr/bin/dnssec-coverage
bind usr/bin/dnssec-dsfromkey
bind usr/bin/dnssec-importkey
bind usr/bin/dnssec-keyfromlabel
bind usr/bin/dnssec-keygen
bind usr/bin/dnssec-keymgr
......
默认显示会将所有文件都显示出来,如只想显示可执行文件,可以进行筛选:
[manjaro@laptop ~]$ pacman -Ql bind | grep -E "/bin/.+"
bind usr/bin/arpaname
bind usr/bin/ddns-confgen
bind usr/bin/delv
bind usr/bin/dig
bind usr/bin/dnssec-cds
bind usr/bin/dnssec-checkds
bind usr/bin/dnssec-coverage
bind usr/bin/dnssec-dsfromkey
bind usr/bin/dnssec-importkey
bind usr/bin/dnssec-keyfromlabel
bind usr/bin/dnssec-keygen
bind usr/bin/dnssec-keymgr
bind usr/bin/dnssec-revoke
bind usr/bin/dnssec-settime
bind usr/bin/dnssec-signzone
bind usr/bin/dnssec-verify
bind usr/bin/host
bind usr/bin/mdig
bind usr/bin/named
bind usr/bin/named-checkconf
bind usr/bin/named-checkzone
bind usr/bin/named-compilezone
bind usr/bin/named-journalprint
bind usr/bin/named-nzd2nzf
bind usr/bin/named-rrchecker
bind usr/bin/nsec3hash
bind usr/bin/nslookup
bind usr/bin/nsupdate
bind usr/bin/rndc
bind usr/bin/rndc-confgen
bind usr/bin/tsig-keygen
[manjaro@laptop ~]$ yay -Ql bind | grep -E "/bin/.+"
bind usr/bin/arpaname
bind usr/bin/ddns-confgen
bind usr/bin/delv
bind usr/bin/dig
bind usr/bin/dnssec-cds
bind usr/bin/dnssec-checkds
bind usr/bin/dnssec-coverage
bind usr/bin/dnssec-dsfromkey
bind usr/bin/dnssec-importkey
bind usr/bin/dnssec-keyfromlabel
bind usr/bin/dnssec-keygen
bind usr/bin/dnssec-keymgr
bind usr/bin/dnssec-revoke
bind usr/bin/dnssec-settime
bind usr/bin/dnssec-signzone
bind usr/bin/dnssec-verify
bind usr/bin/host
bind usr/bin/mdig
bind usr/bin/named
bind usr/bin/named-checkconf
bind usr/bin/named-checkzone
bind usr/bin/named-compilezone
bind usr/bin/named-journalprint
bind usr/bin/named-nzd2nzf
bind usr/bin/named-rrchecker
bind usr/bin/nsec3hash
bind usr/bin/nslookup
bind usr/bin/nsupdate
bind usr/bin/rndc
bind usr/bin/rndc-confgen
bind usr/bin/tsig-keygen
如需要查询manjaro命令属于哪个软件包可访问:https://www.jianshu.com/p/08c40076632e
网友评论