{"id":7681,"date":"2020-05-23T18:43:18","date_gmt":"2020-05-23T10:43:18","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7681"},"modified":"2023-05-01T09:32:32","modified_gmt":"2023-05-01T01:32:32","slug":"pacman","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/pacman","title":{"rendered":"pacman\u547d\u4ee4 &#8211; \u8f6f\u4ef6\u5305\u7ba1\u7406\u5668"},"content":{"rendered":"\n<p>pacman\u547d\u4ee4\u6765\u81ea\u82f1\u6587\u8bcd\u7ec4\u201cpackage&nbsp;manager\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002pacman\u547d\u4ee4\u80fd\u591f\u5728ArchLinux\u7cfb\u7edf\u4e2d\u5b89\u88c5\u3001\u67e5\u8be2\u3001\u5347\u7ea7\u3001\u5378\u8f7d\u670d\u52a1\u7a0b\u5e8f\uff0c\u5b83\u5438\u53d6\u4e86\u5176\u4ed6Linux\u7cfb\u7edf\u7684\u8f6f\u4ef6\u7ba1\u7406\u4f18\u70b9\uff0c\u8b6c\u5982Debian\u7684APT\u673a\u5236\u3001Redhat\u7684Yum\u673a\u5236\u3001 Suse\u7684Yast\u7b49\uff0c\u540c\u6bd4\u6765\u8bf4\u6548\u7387\u8fd8\u662f\u5f88\u4e0d\u9519\u7684\u3002\u53e6\u5916\u7531\u4e8eArchLinux\u7cfb\u7edf\u9ed8\u8ba4\u53ea\u4f1a\u5b89\u88c5\u5f88\u5c11\u7684\u8f6f\u4ef6\uff0c\u56e0\u6b64pacman\u547d\u4ee4\u5de5\u5177\u663e\u5f97\u5c24\u4e3a\u91cd\u8981\uff0c\u5e38\u88ab\u7528\u5230\u3002<\/p>\n\n\n\n<p><strong>\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>pacman [\u53c2\u6570] \u8f6f\u4ef6\u540d<\/p>\n\n\n\n<p><strong>\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>-b<\/td><td>\u8bbe\u7f6e\u6570\u636e\u5e93\u4f4d\u7f6e<\/td><\/tr><tr><td>-c<\/td><td>\u663e\u793a\u8f6f\u4ef6\u5305\u7684\u66f4\u65b0\u65e5\u5fd7<\/td><\/tr><tr><td>-d<\/td><td>\u663e\u793a\u6240\u6709\u4f9d\u8d56\u7684\u8f6f\u4ef6\u5305<\/td><\/tr><tr><td>-e<\/td><td>\u663e\u793a\u6240\u6709\u5355\u72ec\u6307\u5b9a\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/td><\/tr><tr><td>-i<\/td><td>\u663e\u793a\u5df2\u5b89\u88c5\u7684\u5305\u7684\u8be6\u7ec6\u4fe1\u606f<\/td><\/tr><tr><td>-k<\/td><td>\u68c0\u67e5\u8f6f\u4ef6\u5305\u7684\u6587\u4ef6<\/td><\/tr><tr><td>-I<\/td><td>\u663e\u793a\u5df2\u5b89\u88c5\u5305\u7684\u6240\u6709\u6587\u4ef6\u5217\u8868<\/td><\/tr><tr><td>-m<\/td><td>\u663e\u793a\u5728\u540c\u6b65\u6570\u636e\u5e93\u65f6\u6ca1\u627e\u5230\u7684\u8f6f\u4ef6\u5305<\/td><\/tr><tr><td>-n<\/td><td>\u663e\u793a\u5728\u540c\u6b65\u6570\u636e\u5e93\u65f6\u627e\u5230\u7684\u8f6f\u4ef6\u5305<\/td><\/tr><tr><td>-o<\/td><td>\u663e\u793a\u6307\u5b9a\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e2a\u8f6f\u4ef6\u5305<\/td><\/tr><tr><td>-p<\/td><td>\u663e\u793a\u6307\u5b9a\u8f6f\u4ef6\u5305\u6587\u4ef6\u4fe1\u606f<\/td><\/tr><tr><td>-g<\/td><td>\u663e\u793a\u8f6f\u4ef6\u5305\u7ec4\u4fe1\u606f<\/td><\/tr><tr><td>-q<\/td><td>\u663e\u793a\u7ed3\u679c\u7b80\u8981\u4fe1\u606f<\/td><\/tr><tr><td>-Q<\/td><td>\u663e\u793a\u5df2\u7ecf\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/td><\/tr><tr><td>-r<\/td><td>\u8bbe\u7f6e\u5b89\u88c5\u7684\u6839\u76ee\u5f55<\/td><\/tr><tr><td>-R<\/td><td>\u5220\u9664\u6307\u5b9a\u8f6f\u4ef6\u5305<\/td><\/tr><tr><td>-s<\/td><td>\u641c\u7d22\u76f8\u5173\u4f9d\u8d56\u5305<\/td><\/tr><tr><td>-S<\/td><td>\u5b89\u88c5\u6307\u5b9a\u8f6f\u4ef6\u5305<\/td><\/tr><tr><td>-u<\/td><td>\u663e\u793a\u6240\u6709\u53ef\u5347\u7ea7\u7684\u8f6f\u4ef6\u5305<\/td><\/tr><tr><td>-v<\/td><td>\u663e\u793a\u6267\u884c\u8fc7\u7a0b\u8be6\u7ec6\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u53c2\u8003\u793a\u4f8b<\/strong><\/p>\n\n\n\n<p>\u5b89\u88c5\u4e00\u4e2a\u6307\u5b9a\u540d\u79f0\u7684\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>pacman -S Package_name<\/strong><\/pre>\n\n\n\n<p>\u5b89\u88c5\u591a\u4e2a\u6307\u5b9a\u540d\u79f0\u7684\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>pacman -S Package_name1,Package_name2<\/strong><\/pre>\n\n\n\n<p>\u5347\u7ea7\u7cfb\u7edf\u4e2d\u5168\u90e8\u7684\u670d\u52a1\u7a0b\u5e8f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>pacman -Syu<\/strong><\/pre>\n\n\n\n<p>\u5378\u8f7d\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\uff0c\u4f46\u4fdd\u7559\u5176\u5df2\u5b89\u88c5\u7684\u5176\u4f59\u4f9d\u8d56\u5173\u7cfb\u8f6f\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>pacman -R Package_name<\/strong><\/pre>\n\n\n\n<p>\u5378\u8f7d\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\uff0c\u5e76\u5378\u8f7d\u5176\u4f59\u6ca1\u6709\u88ab\u5176\u4ed6\u8f6f\u4ef6\u4f7f\u7528\u7684\u4f9d\u8d56\u5173\u7cfb\u8f6f\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>pacman -Rs Package_name<\/strong><\/pre>\n\n\n\n<p>\u67e5\u8be2\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\u5177\u4f53\u8be6\u60c5\u63cf\u8ff0\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>pacman -Qs <strong>Package_name<\/strong><\/strong><\/pre>\n\n\n\n<p>\u83b7\u53d6\u6307\u5b9a\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u4e2d\u6240\u5305\u542b\u6587\u4ef6\u7684\u5217\u8868\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>pacman -Ql <strong>Package_name<\/strong><\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>pacman\u547d\u4ee4\u6765\u81ea\u82f1\u6587\u8bcd\u7ec4\u201cpackage&nbsp;manager\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002pac [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-7681","post","type-post","status-publish","format-standard","hentry","category-system"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7681","targetHints":{"allow":["GET"]}}],"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=7681"}],"version-history":[{"count":14,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7681\/revisions"}],"predecessor-version":[{"id":14572,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7681\/revisions\/14572"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}