{"id":4966,"date":"2019-09-21T21:03:12","date_gmt":"2019-09-21T13:03:12","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4966"},"modified":"2019-09-21T21:03:14","modified_gmt":"2019-09-21T13:03:14","slug":"dpkg-query","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/dpkg-query","title":{"rendered":"dpkg-query\u547d\u4ee4 – \u5728dpkg\u6570\u636e\u5e93\u4e2d\u67e5\u8be2\u8f6f\u4ef6\u5305"},"content":{"rendered":"\n
dpkg-query\u547d\u4ee4\u662fDebian linux\u4e2d\u8f6f\u4ef6\u5305\u7684\u67e5\u8be2\u5de5\u5177\uff0c\u5b83\u4ecedpkg\u8f6f\u4ef6\u5305\u6570\u636e\u5e93\u4e2d\u67e5\u8be2\u5e76\u663e\u793a\u8f6f\u4ef6\u5305\u7684\u4fe1\u606f\u3002 <\/p>\n\n\n\n
\u67e5\u8be2\u8f6f\u4ef6\u5305\u65f6\uff0c\u8f6f\u4ef6\u5305\u7684\u540d\u79f0\u652f\u6301\u901a\u914d\u7b26\uff0c\u5982\u201cgcc*\u201d\u5c06\u67e5\u8be2\u6240\u6709\u4ee5\u201cgcc\u201d\u5f00\u5934\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f:\u00a0<\/strong> dpkg-query [\u53c2\u6570] [\u8f6f\u4ef6\u5305]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u67e5\u627e\u6587\u4ef6linuxcool_1\u5728\u54ea\u4e2a\u5305\u91cc\u5b89\u88c5\uff1a<\/p>\n\n\n\n \u67e5\u770b\u8f6f\u4ef6\u5305\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u67e5\u770b\u8f6f\u4ef6\u5305\u5b89\u88c5\u65f6\u5b89\u88c5\u5230\u7cfb\u7edf\u7684\u6587\u4ef6\u5217\u8868\uff1a<\/p>\n\n\n\n \u5217\u51fa\u6240\u6709\u5b89\u88c5\u7684\u5305\uff1a <\/p>\n\n\n\n dpkg-query\u547d\u4ee4\u662fDebian linux\u4e2d\u8f6f\u4ef6\u5305\u7684\u67e5\u8be2\u5de5\u5177\uff0c\u5b83\u4ecedpkg\u8f6f\u4ef6\u5305\u6570\u636e\u5e93\u4e2d\u67e5\u8be2\u5e76\u663e\u793a\u8f6f\u4ef6 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4966"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4966"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4966\/revisions"}],"predecessor-version":[{"id":5018,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4966\/revisions\/5018"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-l<\/td> \u5217\u51fa\u7b26\u5408\u5339\u914d\u6a21\u5f0f\u7684\u8f6f\u4ef6\u5305<\/td><\/tr> -s<\/td> \u67e5\u8be2\u8f6f\u4ef6\u5305\u7684\u72b6\u6001\u4fe1\u606f<\/td><\/tr> -L<\/td> \u663e\u793a\u8f6f\u4ef6\u5305\u6240\u5b89\u88c5\u7684\u6587\u4ef6\u5217\u8868<\/td><\/tr> -S<\/td> \u4ece\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u4e2d\u67e5\u8be2\u6587\u4ef6<\/td><\/tr> -w<\/td> \u663e\u793a\u8f6f\u4ef6\u5305\u4fe1\u606f<\/td><\/tr> -c<\/td> \u663e\u793a\u8f6f\u4ef6\u5305\u7684\u63a7\u5236\u6587\u4ef6\u8def\u5f84<\/td><\/tr> -p<\/td> \u663e\u793a\u8f6f\u4ef6\u5305\u7684\u7ec6\u8282<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# dpkg-query -S linuxcool_1<\/pre>\n\n\n\n
[root@linuxcool ~]# dpkg-query -s gimp<\/pre>\n\n\n\n
[root@linuxcool ~]# dpkg-query -L gimp<\/pre>\n\n\n\n
[root@linuxcool ~]# dpkg-query -l<\/pre>\n","protected":false},"excerpt":{"rendered":"