{"id":7681,"date":"2020-05-23T18:43:18","date_gmt":"2020-05-23T10:43:18","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7681"},"modified":"2020-05-23T18:43:19","modified_gmt":"2020-05-23T10:43:19","slug":"pacman","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/pacman","title":{"rendered":"pacman\u547d\u4ee4 – \u8f6f\u4ef6\u5305\u7ba1\u7406\u5668"},"content":{"rendered":"\n
Pacman\u547d\u4ee4\u662f\u4e00\u4e2a\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0c\u4f5c\u4e3aArchLinux\u53d1\u884c\u7248\u7684\u4e00\u90e8\u5206\u3002\u7b80\u5355\u6765\u8bf4\uff0c\u5c31\u662f\u548capt-get\u4e4b\u4e8eUbuntu\u4e00\u6837\uff0cpacman\u5c31\u662fArch\u7684apt-get\u3002\u8981\u60f3\u8f7b\u677e\u73a9\u8f6cArch\uff0c\u5b66\u4f1apacman\u662f\u5fc5\u9700\u7684\u3002<\/p>\n\n\n\n
Pacman\u5305\u7ba1\u7406\u5668\u662fArchLinux\u7684\u4e00\u5927\u4eae\u70b9\u3002\u5b83\u6c72\u53d6\u4e86\u5176\u4ed6Linux\u7248\u672c\u8f6f\u4ef6\u7ba1\u7406\u7684\u4f18\u70b9\uff0c\u8b6c\u5982Debian\u7684APT\u673a\u5236\u3001Redhat\u7684 Yum\u673a\u5236\u3001 Suse\u7684Yast\u7b49\uff0c\u5bf9\u4e8e\u5b89\u88c5\u8f6f\u4ef6\u63d0\u4f9b\u4e86\u65e0\u4e0e\u4f26\u6bd4\u7684\u65b9\u4fbf\u3002\u53e6\u5916\u7531\u4e8eArchLinux\u662f\u4e00\u4e2a\u9488\u5bf9i686\u67b6\u6784\u4f18\u5316\u7684\u53d1\u884c\u7248\uff0c\u56e0\u6b64\u5bf9\u4e8e\u8f6f\u4ef6\u7684\u6548\u7387\u63d0\u9ad8\u4e5f\u6709\u4e00\u5b9a\u7684\u5e2e\u52a9\u3002pacman\u53ef\u4ee5\u8bf4\u662fArchLinux\u7684\u57fa\u7840\uff0c\u56e0\u4e3aArchLinux\u9ed8\u8ba4\u5b89\u88c5\u975e\u5e38\u5c11\u7684\u8f6f\u4ef6\uff0c\u5176\u4ed6\u8f6f\u4ef6\u90fd\u662f\u4f7f\u7528pacman\u901a\u8fc7\u7f51\u7edc\u6765\u5b89\u88c5\u7684\u3002\u5b83\u5c06\u4e00\u4e2a\u7b80\u5355\u7684\u4e8c\u8fdb\u5236\u5305\u683c\u5f0f\u548c\u6613\u7528\u7684\u6784\u5efa\u7cfb\u7edf\u7ed3\u5408\u4e86\u8d77\u6765\u3002Pacman\u4f7f\u5f97\u7b80\u5355\u7684\u7ba1\u7406\u4e0e\u81ea\u5b9a\u4e49\u8f6f\u4ef6\u5305\u6210\u4e3a\u4e86\u53ef\u80fd\uff0c\u800c\u4e0d\u8bba\u4ed6\u4eec\u6765\u81ea\u4e8e\u5b98\u65b9\u7684Arch\u8f6f\u4ef6\u5e93\u6216\u662f\u7528\u6237\u81ea\u5df1\u521b\u5efa\u7684\u3002Pacman\u53ef\u4ee5\u901a\u8fc7\u548c\u4e3b\u670d\u52a1\u5668\u540c\u6b65\u5305\u5217\u8868\u6765\u8fdb\u884c\u7cfb\u7edf\u66f4\u65b0\uff0c\u8fd9\u4f7f\u5f97\u6ce8\u91cd\u5b89\u5168\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\u7684\u7ef4\u62a4\u5de5\u4f5c\u6210\u4e3a\u8f7b\u800c\u6613\u4e3e\u7684\u4e8b\u60c5\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>pacman [\u53c2\u6570]<\/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 \u5b89\u88c5\u6216\u8005\u5347\u7ea7\u5355\u4e2a\u8f6f\u4ef6\u5305\uff0c\u6216\u8005\u4e00\u5217\u8f6f\u4ef6\u5305\uff08\u5305\u542b\u4f9d\u8d56\u5305\uff09\uff1a<\/p>\n\n\n\n \u5728Archlinux\u4e2d,\u4f7f\u7528\u4e00\u6761\u547d\u4ee4\u5373\u53ef\u5bf9\u6574\u4e2a\u7cfb\u7edf\u8fdb\u884c\u66f4\u65b0\uff1a<\/p>\n\n\n\n \u5220\u9664\u5355\u4e2a\u8f6f\u4ef6\u5305\uff0c\u4fdd\u7559\u5176\u5168\u90e8\u5df2\u7ecf\u5b89\u88c5\u7684\u4f9d\u8d56\u5173\u7cfb\uff1a<\/p>\n\n\n\n \u5220\u9664\u6307\u5b9a\u8f6f\u4ef6\u5305\uff0c\u53ca\u5176\u6240\u6709\u6ca1\u6709\u88ab\u5176\u4ed6\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u4f7f\u7528\u7684\u4f9d\u8d56\u5173\u7cfb\uff1a<\/p>\n\n\n\n Pacman\u53ef\u4ee5\u5728\u5305\u6570\u636e\u5e93\u4e2d\u67e5\u8be2\u8f6f\u4ef6\u5305\uff0c\u67e5\u8be2\u4f4d\u7f6e\u5305\u542b\u4e86\u5305\u7684\u540d\u5b57\u548c\u63cf\u8ff0\uff1a<\/p>\n\n\n\n \u8981\u67e5\u8be2\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n \u83b7\u53d6\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u6240\u5305\u542b\u6587\u4ef6\u7684\u5217\u8868\uff1a<\/p>\n\n\n\n Pacman\u547d\u4ee4\u662f\u4e00\u4e2a\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0c\u4f5c\u4e3aArchLinux\u53d1\u884c\u7248\u7684\u4e00\u90e8\u5206\u3002\u7b80\u5355\u6765\u8bf4\uff0c\u5c31\u662f\u548capt-get\u4e4b\u4e8eU […]<\/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\/7681"}],"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":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7681\/revisions"}],"predecessor-version":[{"id":7683,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7681\/revisions\/7683"}],"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}]}}-Q<\/td> \u5217\u51fa\u5df2\u7ecf\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/td><\/tr> -i<\/td> \u67e5\u770b\u5df2\u5b89\u88c5\u7684\u5305\u7684\u8be6\u7ec6\u4fe1\u606f<\/td><\/tr> -I<\/td> \u5217\u51fa\u5df2\u5b89\u88c5\u5305\u7684\u6240\u6709\u6587\u4ef6<\/td><\/tr> -o<\/td> \u67e5\u627e\u67d0\u4e2a\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e2a\u5305<\/td><\/tr> -g<\/td> \u67e5\u8be2\u5305\u7ec4<\/td><\/tr> -s<\/td> \u641c\u7d22\u76f8\u5173\u7684\u4f9d\u8d56\u5305<\/td><\/tr> -R<\/td> \u5220\u9664\u5355\u4e2a\u8f6f\u4ef6\u5305<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# pacman -S package_name1 package_name2<\/pre>\n\n\n\n
[root@linuxcool ~]# pacman -Syu<\/pre>\n\n\n\n
[root@linuxcool ~]# pacman -R package_name<\/pre>\n\n\n\n
[root@linuxcool ~]# pacman -Rs package_name<\/pre>\n\n\n\n
[root@linuxcool ~]# pacman -Ss package<\/pre>\n\n\n\n
[root@linuxcool ~]# pacman -Qs package<\/pre>\n\n\n\n
[root@linuxcool ~]# pacman -Ql package<\/pre>\n","protected":false},"excerpt":{"rendered":"