{"id":1435,"date":"2019-04-27T22:09:55","date_gmt":"2019-04-27T14:09:55","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1435"},"modified":"2022-05-23T19:05:44","modified_gmt":"2022-05-23T11:05:44","slug":"dpkg","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/dpkg","title":{"rendered":"dpkg\u547d\u4ee4 – \u7ba1\u7406\u8f6f\u4ef6\u5b89\u88c5\u5305"},"content":{"rendered":"\n

dpkg\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cDebian package\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u7ba1\u7406\u8f6f\u4ef6\u5b89\u88c5\u5305\uff0c\u5728Debian\u7cfb\u7edf\u4e2d\u6700\u5e38\u7528\u7684\u8f6f\u4ef6\u5b89\u88c5\u3001\u7ba1\u7406\u3001\u5378\u8f7d\u7684\u5b9e\u7528\u5de5\u5177\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>dpkg [\u53c2\u6570] \u8f6f\u4ef6\u5305<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a\ufeff<\/strong><\/p>\n\n\n\n

-i<\/td>\u5b89\u88c5\u8f6f\u4ef6\u5305 <\/td><\/tr>
-r<\/td>\u5220\u9664\u8f6f\u4ef6\u5305 <\/td><\/tr>
-l<\/td>\u663e\u793a\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u5217\u8868 <\/td><\/tr>
-L<\/td>\u663e\u793a\u4e8e\u8f6f\u4ef6\u5305\u5173\u8054\u7684\u6587\u4ef6 <\/td><\/tr>
-c<\/td>\u663e\u793a\u8f6f\u4ef6\u5305\u5185\u6587\u4ef6\u5217\u8868 <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b\ufeff<\/strong><\/p>\n\n\n\n

\u5b89\u88c5\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dpkg -i package.deb <\/strong><\/pre>\n\n\n\n

\u5378\u8f7d\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dpkg -r package.deb  <\/strong><\/pre>\n\n\n\n

\u5217\u51fa\u5f53\u524d\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5217\u8868\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dpkg -l <\/strong><\/pre>\n\n\n\n

\u663e\u793a\u6307\u5b9a\u8f6f\u4ef6\u5305\u5185\u7684\u6587\u4ef6\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dpkg -c package.deb <\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

dpkg\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cDebian package\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u7ba1\u7406\u8f6f\u4ef6\u5b89\u88c5\u5305\uff0c\u5728Debian\u7cfb […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1435"}],"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=1435"}],"version-history":[{"count":9,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1435\/revisions"}],"predecessor-version":[{"id":9957,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1435\/revisions\/9957"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}