{"id":1428,"date":"2019-04-27T22:10:23","date_gmt":"2019-04-27T14:10:23","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1428"},"modified":"2022-05-23T16:03:20","modified_gmt":"2022-05-23T08:03:20","slug":"apt-get","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/apt-get","title":{"rendered":"apt-get\u547d\u4ee4 – \u7ba1\u7406\u670d\u52a1\u8f6f\u4ef6"},"content":{"rendered":"\n
apt-get\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cAdvanced Package Tool get\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u7ba1\u7406\u670d\u52a1\u8f6f\u4ef6\u3002apt-get\u547d\u4ee4\u4e3b\u8981\u5e94\u7528\u4e8eDebian\u3001ubuntu\u7b49\u7cfb\u7edf\uff0c\u80fd\u591f\u50cfyum\/dnf\u8f6f\u4ef6\u4ed3\u5e93\u4e00\u6837\u81ea\u52a8\u4e0b\u8f7d\u3001\u914d\u7f6e\u3001\u5b89\u88c5\u3001\u5378\u8f7d\u670d\u52a1\u8f6f\u4ef6\uff0c\u7528\u6237\u53ea\u8981\u51c6\u786e\u63d0\u51fa\u9700\u6c42\u5c31\u597d~<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>apt-get [\u53c2\u6570] \u8f6f\u4ef6\u540d<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b\ufeff<\/strong><\/p>\n\n\n\n \u5b89\u88c5\u6307\u5b9a\u7684\u670d\u52a1\u8f6f\u4ef6\uff1a<\/p>\n\n\n\n \u66f4\u65b0\u8f6f\u4ef6\u5217\u8868\uff1a<\/p>\n\n\n\n \u5378\u8f7d\u6307\u5b9a\u7684\u670d\u52a1\u8f6f\u4ef6\uff1a<\/p>\n\n\n\n \u5378\u8f7d\u6307\u5b9a\u7684\u670d\u52a1\u8f6f\u4ef6\u53ca\u914d\u7f6e\u4fe1\u606f\uff1a<\/p>\n\n\n\n apt-get\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cAdvanced Package Tool get\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u7ba1\u7406 […]<\/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\/1428"}],"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=1428"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1428\/revisions"}],"predecessor-version":[{"id":9943,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1428\/revisions\/9943"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}update<\/td> \u91cd\u65b0\u83b7\u53d6\u8f6f\u4ef6\u5305\u5217\u8868<\/td><\/tr> upgrade<\/td> \u66f4\u65b0\u8f6f\u4ef6<\/td><\/tr> install<\/td> \u5b89\u88c5\u8f6f\u4ef6<\/td><\/tr> remove<\/td> \u5378\u8f7d\u8f6f\u4ef6<\/td><\/tr> autoremove<\/td> \u81ea\u52a8\u5378\u8f7d\u4e0d\u4f7f\u7528\u7684\u8f6f\u4ef6<\/td><\/tr> source<\/td> \u4e0b\u8f7d\u6e90\u4ee3\u7801<\/td><\/tr> build-dep<\/td> \u7f16\u8bd1\u4f9d\u8d56\u5173\u7cfb<\/td><\/tr> dist-upgrade<\/td> \u66f4\u65b0\u7cfb\u7edf<\/td><\/tr> purge<\/td> \u5220\u9664\u914d\u7f6e\u6587\u4ef6<\/td><\/tr> clean<\/td> \u6e05\u7406\u5783\u573e\u6587\u4ef6<\/td><\/tr> check<\/td> \u68c0\u67e5\u662f\u5426\u635f\u574f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# apt-get install httpd<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# apt-get update<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# apt-get remove httpd<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# apt-get -purge remove httpd<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"