{"id":6814,"date":"2020-03-27T20:24:13","date_gmt":"2020-03-27T12:24:13","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6814"},"modified":"2020-05-10T10:48:33","modified_gmt":"2020-05-10T02:48:33","slug":"aptitude","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/aptitude","title":{"rendered":"aptitude\u547d\u4ee4 – \u5305\u7ba1\u7406\u5de5\u5177"},"content":{"rendered":"\n

aptitude\u547d\u4ee4\u4e0eapt-get\u547d\u4ee4\u4e00\u6837\uff0c\u90fd\u662fDebian Linux\u53ca\u5176\u884d\u751f\u7cfb\u7edf\u4e2d\u529f\u80fd\u6781\u5176\u5f3a\u5927\u7684\u5305\u7ba1\u7406\u5de5\u5177\u3002<\/p>\n\n\n\n

\u4e0eapt-get\u4e0d\u540c\u7684\u662f\uff0captitude\u5728\u5904\u7406\u4f9d\u8d56\u95ee\u9898\u4e0a\u66f4\u4f73\u4e00\u4e9b\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0captitude \u5728\u5220\u9664\u4e00\u4e2a\u5305\u65f6\uff0c\u4f1a\u540c\u65f6\u5220\u9664\u672c\u8eab\u6240\u4f9d\u8d56\u7684\u5305\u3002\u8fd9\u6837\uff0c\u7cfb\u7edf\u4e2d\u4e0d\u4f1a\u6b8b\u7559\u65e0\u7528\u7684\u5305\uff0c\u6574\u4e2a\u7cfb\u7edf\u66f4\u4e3a\u5e72\u51c0\u3002\u5b83\u901a\u8fc7\u6587\u672c\u64cd\u4f5c\u83dc\u5355\u548c\u547d\u4ee4\u4e24\u79cd\u65b9\u5f0f\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002 <\/p>\n\n\n\n

\u76f8\u5bf9\u6765\u8bf4\uff0c\u66f4\u52a0\u63a8\u8350\u4f7f\u7528aptitude\u547d\u4ee4\u6765\u4ee3\u66ffapt-get\uff0c\u7279\u522b\u662f\u5728\u4e0b\u8f7d\u6216\u8005\u5220\u9664\u4f9d\u8d56\u5305\u7684\u65f6\u5019\uff0captitude\u90fd\u8981\u6bd4apt-get\u66f4\u597d\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>aptitude [\u53c2\u6570]<\/p>\n\n\n\n

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

-d<\/td>\u4ec5\u4e0b\u8f7d\u8f6f\u4ef6\u5305\uff0c\u4e0d\u6267\u884c\u5b89\u88c5\u64cd\u4f5c <\/td><\/tr>
-p<\/td>\u6bcf\u4e00\u6b65\u64cd\u4f5c\u90fd\u8981\u6c42\u786e\u8ba4 <\/td><\/tr>
-y<\/td>\u6240\u6709\u95ee\u9898\u90fd\u56de\u7b54\u201cyes\u201d <\/td><\/tr>
-v<\/td>\u663e\u793a\u9644\u52a0\u4fe1\u606f<\/td><\/tr>
-u<\/td>\u542f\u52a8\u65f6\u4e0b\u8f7d\u65b0\u7684\u8f6f\u4ef6\u5305\u5217\u8868 <\/td><\/tr>
-h<\/td>\u663e\u793a\u5e2e\u52a9\u4fe1\u606f <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u66f4\u65b0\u53ef\u7528\u7684\u5305\u5217\u8868\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# aptitude update <\/pre>\n\n\n\n

\u6267\u884c\u4e00\u6b21\u5b89\u5168\u7684\u5347\u7ea7\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# aptitude safe-upgrade<\/pre>\n\n\n\n

\u5b89\u88c5\u5305\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# aptitude install pkgname <\/pre>\n\n\n\n

\u5220\u9664\u5305\u53ca\u5176\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# aptitude purge pkgname<\/pre>\n\n\n\n

\u5220\u9664\u4e0b\u8f7d\u7684\u5305\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# aptitude clean <\/pre>\n\n\n\n

\u641c\u7d22\u5305\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# aptitude search pkgname  <\/pre>\n","protected":false},"excerpt":{"rendered":"

aptitude\u547d\u4ee4\u4e0eapt-get\u547d\u4ee4\u4e00\u6837\uff0c\u90fd\u662fDebian Linux\u53ca\u5176\u884d\u751f\u7cfb\u7edf\u4e2d\u529f\u80fd\u6781\u5176\u5f3a\u5927\u7684\u5305\u7ba1\u7406\u5de5 […]<\/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\/6814"}],"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=6814"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6814\/revisions"}],"predecessor-version":[{"id":7624,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6814\/revisions\/7624"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}